	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zd_beacon_done
_zd_beacon_done:                        ## @zd_beacon_done
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_ZD_DEVICE_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%rbx), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	(%rax), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	callq	_ieee80211_queue_stopped
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%rbx), %edi
	movq	16(%rbx), %rsi
	callq	_ieee80211_get_buffered_bc
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_zd_op_tx
	jmp	LBB0_3
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movl	8(%rbx), %edi
	movq	16(%rbx), %rsi
	callq	_ieee80211_beacon_get
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	8(%rbx), %edi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_zd_mac_config_beacon
LBB0_8:
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ZD_DEVICE_RUNNING,4,2          ## @ZD_DEVICE_RUNNING
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_jiffies,4,2                    ## @jiffies
	.no_dead_strip	_zd_beacon_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zd_beacon_done
_zd_beacon_done:                        ; @zd_beacon_done
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _ZD_DEVICE_RUNNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZD_DEVICE_RUNNING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #24
	bl	_test_bit
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	mov	w1, #0
	bl	_ieee80211_queue_stopped
	cbnz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #8]
	ldr	x1, [x19, #16]
	bl	_ieee80211_get_buffered_bc
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, x0
	ldr	w0, [x19, #8]
	mov	x1, #0
	bl	_zd_op_tx
	b	LBB0_3
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w0, [x19, #8]
	ldr	x1, [x19, #16]
	bl	_ieee80211_beacon_get
	cbz	x0, LBB0_9
; %bb.8:
	mov	x1, x0
	ldr	w0, [x19, #8]
	mov	w2, #1
	bl	_zd_mac_config_beacon
LBB0_9:
	mov	x0, x19
	bl	_spin_lock_irq
Lloh6:
	adrp	x8, _jiffies@GOTPAGE
Lloh7:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irq
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ZD_DEVICE_RUNNING,4,2          ; @ZD_DEVICE_RUNNING
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_jiffies,4,2                    ; @jiffies
	.no_dead_strip	_zd_beacon_done
.subsections_via_symbols
