	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl18xx_enable_interrupts
_wl18xx_enable_interrupts:              ## @wl18xx_enable_interrupts
	.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
	movq	%rdi, %r14
	movq	_WL18XX_ACX_EVENTS_VECTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_WL18XX_INTR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_REG_INTERRUPT_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_wlcore_write_reg
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_wlcore_enable_interrupts
	movl	(%r12), %esi
	movq	_WL1271_ACX_INTR_ALL@GOTPCREL(%rip), %rax
	notl	%r15d
	andl	(%rax), %r15d
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_wlcore_write_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_wlcore_disable_interrupts
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WL18XX_ACX_EVENTS_VECTOR,4,2   ## @WL18XX_ACX_EVENTS_VECTOR
	.comm	_WL18XX_INTR_MASK,4,2           ## @WL18XX_INTR_MASK
	.comm	_REG_INTERRUPT_MASK,4,2         ## @REG_INTERRUPT_MASK
	.comm	_WL1271_ACX_INTR_ALL,4,2        ## @WL1271_ACX_INTR_ALL
	.no_dead_strip	_wl18xx_enable_interrupts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl18xx_enable_interrupts
_wl18xx_enable_interrupts:              ; @wl18xx_enable_interrupts
	.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, x0
Lloh0:
	adrp	x8, _WL18XX_ACX_EVENTS_VECTOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WL18XX_ACX_EVENTS_VECTOR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _WL18XX_INTR_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WL18XX_INTR_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
Lloh6:
	adrp	x22, _REG_INTERRUPT_MASK@GOTPAGE
Lloh7:
	ldr	x22, [x22, _REG_INTERRUPT_MASK@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_wlcore_write_reg
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_wlcore_enable_interrupts
	ldr	w1, [x22]
Lloh8:
	adrp	x8, _WL1271_ACX_INTR_ALL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WL1271_ACX_INTR_ALL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w2, w8, w21
	mov	x0, x19
	bl	_wlcore_write_reg
	mov	x20, x0
	tbz	w0, #31, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_wlcore_disable_interrupts
	b	LBB0_4
LBB0_3:
	mov	x20, x0
LBB0_4:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WL18XX_ACX_EVENTS_VECTOR,4,2   ; @WL18XX_ACX_EVENTS_VECTOR
	.comm	_WL18XX_INTR_MASK,4,2           ; @WL18XX_INTR_MASK
	.comm	_REG_INTERRUPT_MASK,4,2         ; @REG_INTERRUPT_MASK
	.comm	_WL1271_ACX_INTR_ALL,4,2        ; @WL1271_ACX_INTR_ALL
	.no_dead_strip	_wl18xx_enable_interrupts
.subsections_via_symbols
