	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function umac_enable_set
_umac_enable_set:                       ## @umac_enable_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	_GIB_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_gib_readl
	movl	%eax, %ecx
	orl	%ebx, %ecx
	notl	%ebx
	andl	%eax, %ebx
	testl	%r14d, %r14d
	cmovnel	%ecx, %ebx
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_gib_writel
	testl	%r14d, %r14d
	je	LBB0_5
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_UMAC_CMD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_umac_readl
	movl	%eax, %ecx
	orl	%ebx, %ecx
	notl	%ebx
	andl	%eax, %ebx
	testl	%r14d, %r14d
	cmovnel	%ecx, %ebx
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_umac_writel
	testl	%r14d, %r14d
	jne	LBB0_4
LBB0_5:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usleep_range                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UMAC_CMD,4,2                   ## @UMAC_CMD
	.comm	_GIB_CONTROL,4,2                ## @GIB_CONTROL
	.no_dead_strip	_umac_enable_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function umac_enable_set
_umac_enable_set:                       ; @umac_enable_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x22, _GIB_CONTROL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GIB_CONTROL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_gib_readl
	orr	w8, w0, w21
	bic	w9, w0, w21
	cmp	w19, #0
	csel	w1, w9, w8, eq
	ldr	w2, [x22]
	mov	x0, x20
	bl	_gib_writel
	cbz	w19, LBB0_4
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh2:
	adrp	x22, _UMAC_CMD@GOTPAGE
Lloh3:
	ldr	x22, [x22, _UMAC_CMD@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_umac_readl
	orr	w8, w0, w21
	bic	w9, w0, w21
	cmp	w19, #0
	csel	w1, w9, w8, eq
	ldr	w2, [x22]
	mov	x0, x20
	bl	_umac_writel
	cbnz	w19, LBB0_2
LBB0_4:
	mov	w0, #1000
	mov	w1, #2000
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_usleep_range
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_UMAC_CMD,4,2                   ; @UMAC_CMD
	.comm	_GIB_CONTROL,4,2                ; @GIB_CONTROL
	.no_dead_strip	_umac_enable_set
.subsections_via_symbols
