	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl80211_set_beacon
_nl80211_set_beacon:                    ## @nl80211_set_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %rax
	movq	(%rax), %r14
	movq	8(%rax), %rbx
	movq	8(%rbx), %rax
	movq	(%rax), %rcx
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.1:
	movq	_NL80211_IFTYPE_P2P_GO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
LBB0_4:
	movq	(%r14), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_2
## %bb.5:
	cmpl	$0, 8(%rax)
	je	LBB0_6
## %bb.7:
	leaq	-24(%rbp), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_nl80211_parse_beacon
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	leaq	-24(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rdev_change_beacon
	jmp	LBB0_9
LBB0_2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_P2P_GO,8,3      ## @NL80211_IFTYPE_P2P_GO
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_nl80211_set_beacon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nl80211_set_beacon
_nl80211_set_beacon:                    ; @nl80211_set_beacon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x9, [x1]
	ldr	x19, [x9, #8]
	ldr	x8, [x19, #8]
	ldr	x10, [x8]
Lloh0:
	adrp	x11, _NL80211_IFTYPE_AP@GOTPAGE
Lloh1:
	ldr	x11, [x11, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
Lloh3:
	adrp	x12, _NL80211_IFTYPE_P2P_GO@GOTPAGE
Lloh4:
	ldr	x12, [x12, _NL80211_IFTYPE_P2P_GO@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x12]
	cmp	x10, x11
	ccmp	x10, x12, #4, ne
	b.ne	LBB0_5
; %bb.1:
	ldr	x20, [x9]
	ldr	x9, [x20]
	ldr	w9, [x9]
	cbz	w9, LBB0_5
; %bb.2:
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_8
; %bb.3:
	mov	x0, x1
	add	x1, sp, #8
	bl	_nl80211_parse_beacon
	cbnz	w0, LBB0_7
; %bb.4:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_rdev_change_beacon
	b	LBB0_7
LBB0_5:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_P2P_GO,8,3      ; @NL80211_IFTYPE_P2P_GO
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_nl80211_set_beacon
.subsections_via_symbols
