	.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, %r15
	movq	8(%rdi), %r14
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_b43_is_mode
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_NL80211_IFTYPE_MESH_POINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_b43_is_mode
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_b43_is_mode
	testl	%eax, %eax
	je	LBB0_6
LBB0_3:
	movq	_B43_IRQ_BEACON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r15)
	movq	_B43_MMIO_MACCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_b43_read32
	movl	%eax, %ebx
	movq	_B43_MACCMD_BEACON0_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_B43_MACCMD_BEACON1_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	testl	%ebx, %r13d
	je	LBB0_7
## %bb.4:
	movl	%r12d, %eax
	andl	%ebx, %eax
	je	LBB0_7
## %bb.5:
	movq	_B43_MMIO_GEN_IRQ_REASON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B43_IRQ_BEACON@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_b43_write32
	movl	(%rbx), %eax
	orl	%eax, (%r15)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%r14), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	$0, (%r14)
	movq	%r15, %rdi
	callq	_b43_upload_beacon0
	movq	%r15, %rdi
	callq	_b43_upload_beacon1
LBB0_11:
	movq	_B43_MMIO_MACCMD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_b43_read32
	movq	_B43_MACCMD_BEACON0_VALID@GOTPCREL(%rip), %rcx
LBB0_12:
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_write32                    ## TAILCALL
LBB0_9:
	testl	%ebx, %r13d
	je	LBB0_10
## %bb.13:
	testl	%ebx, %r12d
	jne	LBB0_6
## %bb.14:
	movq	%r15, %rdi
	callq	_b43_upload_beacon1
	movq	_B43_MMIO_MACCMD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_b43_read32
	movq	_B43_MACCMD_BEACON1_VALID@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_10:
	movq	%r15, %rdi
	callq	_b43_upload_beacon0
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_AP,4,2          ## @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_MESH_POINT,4,2  ## @NL80211_IFTYPE_MESH_POINT
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ## @NL80211_IFTYPE_ADHOC
	.comm	_B43_IRQ_BEACON,4,2             ## @B43_IRQ_BEACON
	.comm	_B43_MMIO_MACCMD,4,2            ## @B43_MMIO_MACCMD
	.comm	_B43_MACCMD_BEACON0_VALID,4,2   ## @B43_MACCMD_BEACON0_VALID
	.comm	_B43_MACCMD_BEACON1_VALID,4,2   ## @B43_MACCMD_BEACON1_VALID
	.comm	_B43_MMIO_GEN_IRQ_REASON,4,2    ## @B43_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	_b43_is_mode
	cbnz	w0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _NL80211_IFTYPE_MESH_POINT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_IFTYPE_MESH_POINT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_b43_is_mode
	cbnz	w0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_b43_is_mode
	cbz	w0, LBB0_9
LBB0_3:
Lloh9:
	adrp	x24, _B43_IRQ_BEACON@GOTPAGE
Lloh10:
	ldr	x24, [x24, _B43_IRQ_BEACON@GOTPAGEOFF]
	ldr	w8, [x24]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
Lloh11:
	adrp	x21, _B43_MMIO_MACCMD@GOTPAGE
Lloh12:
	ldr	x21, [x21, _B43_MMIO_MACCMD@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_b43_read32
Lloh13:
	adrp	x22, _B43_MACCMD_BEACON0_VALID@GOTPAGE
Lloh14:
	ldr	x22, [x22, _B43_MACCMD_BEACON0_VALID@GOTPAGEOFF]
	ldr	w8, [x22]
	and	w26, w8, w0
Lloh15:
	adrp	x23, _B43_MACCMD_BEACON1_VALID@GOTPAGE
Lloh16:
	ldr	x23, [x23, _B43_MACCMD_BEACON1_VALID@GOTPAGEOFF]
	ldr	w8, [x23]
	and	w25, w8, w0
	cmp	w26, #0
	ccmp	w25, #0, #4, ne
	b.ne	LBB0_8
; %bb.4:
	ldr	w0, [x20]
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.5:
	str	wzr, [x20]
	mov	x0, x19
	bl	_b43_upload_beacon0
	mov	x0, x19
	bl	_b43_upload_beacon1
LBB0_6:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_b43_read32
	ldr	w8, [x22]
LBB0_7:
	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	_b43_write32
LBB0_8:
Lloh17:
	adrp	x8, _B43_MMIO_GEN_IRQ_REASON@GOTPAGE
Lloh18:
	ldr	x8, [x8, _B43_MMIO_GEN_IRQ_REASON@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_b43_write32
	ldr	w8, [x24]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_9:
	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_10:
	cbz	w26, LBB0_13
; %bb.11:
	cbnz	w25, LBB0_9
; %bb.12:
	mov	x0, x19
	bl	_b43_upload_beacon1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_b43_read32
	ldr	w8, [x23]
	b	LBB0_7
LBB0_13:
	mov	x0, x19
	bl	_b43_upload_beacon0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_AP,4,2          ; @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_MESH_POINT,4,2  ; @NL80211_IFTYPE_MESH_POINT
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ; @NL80211_IFTYPE_ADHOC
	.comm	_B43_IRQ_BEACON,4,2             ; @B43_IRQ_BEACON
	.comm	_B43_MMIO_MACCMD,4,2            ; @B43_MMIO_MACCMD
	.comm	_B43_MACCMD_BEACON0_VALID,4,2   ; @B43_MACCMD_BEACON0_VALID
	.comm	_B43_MACCMD_BEACON1_VALID,4,2   ; @B43_MACCMD_BEACON1_VALID
	.comm	_B43_MMIO_GEN_IRQ_REASON,4,2    ; @B43_MMIO_GEN_IRQ_REASON
	.no_dead_strip	_handle_irq_beacon
.subsections_via_symbols
