	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_assign_beacon
_ieee80211_assign_beacon:               ## @ieee80211_assign_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_BSS_CHANGED_BEACON@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%rdi), %edi
	callq	_rtnl_dereference
	movq	%rax, %r15
	movq	24(%r13), %rax
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	testq	%r15, %r15
	jne	LBB0_4
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	movq	%r15, %rax
	cmovneq	%r13, %rax
	testq	%r15, %r15
	movl	(%rax), %r14d
	movq	%r13, %rax
	cmovneq	%r15, %rax
	cmpq	$0, 16(%r13)
	cmovneq	%r13, %rax
	movl	4(%rax), %ebx
	leal	(%r14,%rbx), %edi
	addl	$24, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r12
	movslq	%r14d, %rax
	leaq	96(%r12), %rdi
	movq	%rdi, 16(%r12)
	leaq	(%r12,%rax,4), %rax
	addq	$96, %rax
	movq	%rax, 8(%r12)
	movl	%r14d, (%r12)
	movl	%ebx, 4(%r12)
	movq	24(%r13), %rsi
	testq	%rsi, %rsi
	jne	LBB0_8
## %bb.7:
	movq	16(%r15), %rsi
LBB0_8:
	movl	%r14d, %edx
	callq	_memcpy
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	16(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:
	movq	8(%r12), %rdi
	jmp	LBB0_12
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	testq	%r15, %r15
	je	LBB0_13
## %bb.11:
	movq	8(%r12), %rdi
	movq	8(%r15), %rsi
LBB0_12:
	movl	%ebx, %edx
	callq	_memcpy
LBB0_13:
	movl	8(%r13), %edx
	movl	12(%r13), %esi
	movq	%r14, %rdi
	callq	_ieee80211_set_probe_resp
	testl	%eax, %eax
	js	LBB0_14
## %bb.15:
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movq	_BSS_CHANGED_AP_PROBE_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_17:
	orl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_rcu_assign_pointer
	testq	%r15, %r15
	je	LBB0_19
## %bb.18:
	movq	_rcu_head@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_kfree_rcu
	jmp	LBB0_19
LBB0_14:
	movl	%eax, %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_BSS_CHANGED_BEACON,4,2         ## @BSS_CHANGED_BEACON
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BSS_CHANGED_AP_PROBE_RESP,4,2  ## @BSS_CHANGED_AP_PROBE_RESP
	.comm	_rcu_head,4,2                   ## @rcu_head
	.no_dead_strip	_ieee80211_assign_beacon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_assign_beacon
_ieee80211_assign_beacon:               ; @ieee80211_assign_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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _BSS_CHANGED_BEACON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BSS_CHANGED_BEACON@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	ldr	w0, [x0]
	bl	_rtnl_dereference
	ldr	x8, [x21, #24]
	cmp	x8, #0
	ccmp	x0, #0, #0, eq
	b.eq	LBB0_6
; %bb.1:
	mov	x19, x0
	cmp	x8, #0
	csel	x8, x21, x0, ne
	cmp	x0, #0
	ldr	w24, [x8]
	ldr	x8, [x21, #16]
	ccmp	x8, #0, #0, ne
	csel	x8, x0, x21, eq
	ldr	w23, [x8, #4]
	add	w8, w24, w23
	add	w0, w8, #24
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x22, x0
	sxtw	x8, w24
	add	x0, x0, #96
	add	x8, x0, x8, lsl #2
	stp	x8, x0, [x22, #8]
	stp	w24, w23, [x22]
	ldr	x1, [x21, #24]
	cbnz	x1, LBB0_4
; %bb.3:
	ldr	x1, [x19, #16]
LBB0_4:
	mov	x2, x24
	bl	_memcpy
	ldr	x1, [x21, #16]
	cbz	x1, LBB0_10
; %bb.5:
	ldr	x0, [x22, #8]
	b	LBB0_12
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x21
	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	x19, LBB0_13
; %bb.11:
	ldr	x0, [x22, #8]
	ldr	x1, [x19, #8]
LBB0_12:
	mov	x2, x23
	bl	_memcpy
LBB0_13:
	ldp	w2, w1, [x21, #8]
	mov	x0, x20
	bl	_ieee80211_set_probe_resp
	mov	x21, x0
	tbnz	w0, #31, LBB0_9
; %bb.14:
Lloh10:
	adrp	x8, _BSS_CHANGED_AP_PROBE_RESP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BSS_CHANGED_AP_PROBE_RESP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w21, #0
	csel	w8, w8, wzr, eq
	orr	w21, w8, w25
	ldr	w0, [x20]
	mov	x1, x22
	bl	_rcu_assign_pointer
	cbz	x19, LBB0_9
; %bb.15:
Lloh13:
	adrp	x8, _rcu_head@GOTPAGE
Lloh14:
	ldr	x8, [x8, _rcu_head@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kfree_rcu
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_BSS_CHANGED_BEACON,4,2         ; @BSS_CHANGED_BEACON
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BSS_CHANGED_AP_PROBE_RESP,4,2  ; @BSS_CHANGED_AP_PROBE_RESP
	.comm	_rcu_head,4,2                   ; @rcu_head
	.no_dead_strip	_ieee80211_assign_beacon
.subsections_via_symbols
