	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_irq_beacon
_handle_irq_beacon:                     ## @handle_irq_beacon
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_b43legacy_is_mode
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	_B43legacy_IRQ_BEACON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	movq	_B43legacy_MMIO_MACCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_b43legacy_read32
	movl	%eax, %ebx
	movq	_B43legacy_MACCMD_BEACON0_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_B43legacy_MACCMD_BEACON1_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	testl	%ebx, %r13d
	je	LBB0_5
## %bb.2:
	movl	%r12d, %eax
	andl	%ebx, %eax
	je	LBB0_5
## %bb.3:
	movq	_B43legacy_MMIO_GEN_IRQ_REASON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B43legacy_IRQ_BEACON@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_b43legacy_write32
	movl	(%rbx), %eax
	orl	%eax, (%r14)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r15), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	$0, (%r15)
	movq	%r14, %rdi
	callq	_b43legacy_upload_beacon0
	movq	%r14, %rdi
	callq	_b43legacy_upload_beacon1
LBB0_9:
	movq	_B43legacy_MMIO_MACCMD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_b43legacy_read32
	movq	_B43legacy_MACCMD_BEACON0_VALID@GOTPCREL(%rip), %rcx
LBB0_10:
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43legacy_write32              ## TAILCALL
LBB0_7:
	testl	%ebx, %r13d
	je	LBB0_8
## %bb.11:
	testl	%ebx, %r12d
	jne	LBB0_4
## %bb.12:
	movq	%r14, %rdi
	callq	_b43legacy_upload_beacon1
	movq	_B43legacy_MMIO_MACCMD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_b43legacy_read32
	movq	_B43legacy_MACCMD_BEACON1_VALID@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_8:
	movq	%r14, %rdi
	callq	_b43legacy_upload_beacon0
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_AP,4,2          ## @NL80211_IFTYPE_AP
	.comm	_B43legacy_IRQ_BEACON,4,2       ## @B43legacy_IRQ_BEACON
	.comm	_B43legacy_MMIO_MACCMD,4,2      ## @B43legacy_MMIO_MACCMD
	.comm	_B43legacy_MACCMD_BEACON0_VALID,4,2 ## @B43legacy_MACCMD_BEACON0_VALID
	.comm	_B43legacy_MACCMD_BEACON1_VALID,4,2 ## @B43legacy_MACCMD_BEACON1_VALID
	.comm	_B43legacy_MMIO_GEN_IRQ_REASON,4,2 ## @B43legacy_MMIO_GEN_IRQ_REASON
	.no_dead_strip	_handle_irq_beacon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_irq_beacon
_handle_irq_beacon:                     ; @handle_irq_beacon
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _NL80211_IFTYPE_AP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_b43legacy_is_mode
	cbz	w0, LBB0_7
; %bb.1:
Lloh3:
	adrp	x24, _B43legacy_IRQ_BEACON@GOTPAGE
Lloh4:
	ldr	x24, [x24, _B43legacy_IRQ_BEACON@GOTPAGEOFF]
	ldr	w8, [x24]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
Lloh5:
	adrp	x21, _B43legacy_MMIO_MACCMD@GOTPAGE
Lloh6:
	ldr	x21, [x21, _B43legacy_MMIO_MACCMD@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_b43legacy_read32
Lloh7:
	adrp	x22, _B43legacy_MACCMD_BEACON0_VALID@GOTPAGE
Lloh8:
	ldr	x22, [x22, _B43legacy_MACCMD_BEACON0_VALID@GOTPAGEOFF]
	ldr	w8, [x22]
	and	w26, w8, w0
Lloh9:
	adrp	x23, _B43legacy_MACCMD_BEACON1_VALID@GOTPAGE
Lloh10:
	ldr	x23, [x23, _B43legacy_MACCMD_BEACON1_VALID@GOTPAGEOFF]
	ldr	w8, [x23]
	and	w25, w8, w0
	cmp	w26, #0
	ccmp	w25, #0, #4, ne
	b.ne	LBB0_6
; %bb.2:
	ldr	w0, [x20]
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.3:
	str	wzr, [x20]
	mov	x0, x19
	bl	_b43legacy_upload_beacon0
	mov	x0, x19
	bl	_b43legacy_upload_beacon1
LBB0_4:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_b43legacy_read32
	ldr	w8, [x22]
LBB0_5:
	orr	w2, w8, w0
	ldr	w1, [x21]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_b43legacy_write32
LBB0_6:
Lloh11:
	adrp	x8, _B43legacy_MMIO_GEN_IRQ_REASON@GOTPAGE
Lloh12:
	ldr	x8, [x8, _B43legacy_MMIO_GEN_IRQ_REASON@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_b43legacy_write32
	ldr	w8, [x24]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	cbz	w26, LBB0_11
; %bb.9:
	cbnz	w25, LBB0_7
; %bb.10:
	mov	x0, x19
	bl	_b43legacy_upload_beacon1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_b43legacy_read32
	ldr	w8, [x23]
	b	LBB0_5
LBB0_11:
	mov	x0, x19
	bl	_b43legacy_upload_beacon0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_AP,4,2          ; @NL80211_IFTYPE_AP
	.comm	_B43legacy_IRQ_BEACON,4,2       ; @B43legacy_IRQ_BEACON
	.comm	_B43legacy_MMIO_MACCMD,4,2      ; @B43legacy_MMIO_MACCMD
	.comm	_B43legacy_MACCMD_BEACON0_VALID,4,2 ; @B43legacy_MACCMD_BEACON0_VALID
	.comm	_B43legacy_MACCMD_BEACON1_VALID,4,2 ; @B43legacy_MACCMD_BEACON1_VALID
	.comm	_B43legacy_MMIO_GEN_IRQ_REASON,4,2 ; @B43legacy_MMIO_GEN_IRQ_REASON
	.no_dead_strip	_handle_irq_beacon
.subsections_via_symbols
