	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl80211_start_ap
_nl80211_start_ap:                      ## @nl80211_start_ap
	.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	$104, %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	8(%rsi), %rax
	movq	(%rax), %r14
	movq	8(%rax), %r15
	movq	8(%r15), %r12
	movq	(%r12), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	movq	_NL80211_IFTYPE_P2P_GO@GOTPCREL(%rip), %rdx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	cmpq	(%rdx), %rax
	jne	LBB0_39
LBB0_2:
	movq	16(%r14), %rax
	cmpl	$0, (%rax)
	je	LBB0_39
## %bb.3:
	cmpq	$0, 32(%r12)
	je	LBB0_5
## %bb.4:
	movq	_EALREADY@GOTPCREL(%rip), %rax
	jmp	LBB0_40
LBB0_5:
	leaq	-136(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$96, %edx
	callq	_memset
	movq	(%r13), %rax
	movq	_NL80211_ATTR_BEACON_INTERVAL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_21
## %bb.6:
	movq	_NL80211_ATTR_DTIM_PERIOD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_21
## %bb.7:
	movq	_NL80211_ATTR_BEACON_HEAD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_21
## %bb.8:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_nl80211_parse_beacon
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_42
## %bb.9:
	movq	(%r13), %rax
	movq	_NL80211_ATTR_BEACON_INTERVAL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_nla_get_u32
	movq	%rax, -80(%rbp)
	movq	(%r13), %rax
	movq	_NL80211_ATTR_DTIM_PERIOD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_nla_get_u32
	movq	%rax, -56(%rbp)
	movq	-80(%rbp), %rsi
	movq	%r14, %rdi
	callq	_cfg80211_validate_beacon_int
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_42
## %bb.10:
	movq	(%r13), %rax
	movq	_NL80211_ATTR_SSID@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.11:
	callq	_nla_data
	movl	%eax, -100(%rbp)
	movq	(%r13), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_nla_len
	movq	%rax, -136(%rbp)
	testq	%rax, %rax
	je	LBB0_50
## %bb.12:
	movq	_IEEE80211_MAX_SSID_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_50
## %bb.13:
	movq	(%r13), %rax
LBB0_14:
	movq	_NL80211_ATTR_HIDDEN_SSID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.15:
	callq	_nla_get_u32
	movq	%rax, -128(%rbp)
	movq	_NL80211_HIDDEN_SSID_NOT_IN_USE@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_18
## %bb.16:
	movq	_NL80211_HIDDEN_SSID_ZERO_LEN@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_18
## %bb.17:
	movq	_NL80211_HIDDEN_SSID_ZERO_CONTENTS@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_50
LBB0_18:
	movq	(%r13), %rax
LBB0_19:
	movq	_NL80211_ATTR_PRIVACY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	cmpq	$0, (%rax,%rcx,8)
	setne	%dl
	movl	%edx, -120(%rbp)
	movq	_NL80211_ATTR_AUTH_TYPE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.20:
	callq	_nla_get_u32
	movq	%rax, -64(%rbp)
	movq	_NL80211_CMD_START_AP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_nl80211_valid_auth_type
	testl	%eax, %eax
	jne	LBB0_23
	jmp	LBB0_50
LBB0_21:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_41
LBB0_22:
	movq	_NL80211_AUTHTYPE_AUTOMATIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
LBB0_23:
	leaq	-68(%rbp), %rdx
	movq	_NL80211_MAX_NR_CIPHER_SUITES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_nl80211_crypto_settings
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_42
## %bb.24:
	movq	(%r13), %rax
	movq	_NL80211_ATTR_INACTIVITY_TIMEOUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	movq	_NL80211_IFTYPE_P2P_GO@GOTPCREL(%rip), %rbx
	je	LBB0_27
## %bb.25:
	movq	_NL80211_FEATURE_INACTIVITY_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_39
## %bb.26:
	callq	_nla_get_u16
	movl	%eax, -72(%rbp)
	movq	(%r13), %rax
LBB0_27:
	movq	_NL80211_ATTR_P2P_CTWINDOW@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_32
## %bb.28:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_50
## %bb.29:
	callq	_nla_get_u8
	movl	%eax, -116(%rbp)
	cmpl	$128, %eax
	jge	LBB0_50
## %bb.30:
	testl	%eax, %eax
	je	LBB0_32
## %bb.31:
	movq	_NL80211_FEATURE_P2P_GO_CTWIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_50
LBB0_32:
	movq	(%r13), %rax
	movq	_NL80211_ATTR_P2P_OPPPS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_37
## %bb.33:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_50
## %bb.34:
	callq	_nla_get_u8
	cmpl	$2, %eax
	jge	LBB0_50
## %bb.35:
	movl	%eax, -112(%rbp)
	testl	%eax, %eax
	je	LBB0_37
## %bb.36:
	movq	_NL80211_FEATURE_P2P_GO_OPPPS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_50
LBB0_37:
	movq	(%r13), %rax
	movq	_NL80211_ATTR_WIPHY_FREQ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_43
## %bb.38:
	leaq	-96(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_nl80211_parse_chandef
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_42
	jmp	LBB0_46
LBB0_39:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_40:
	xorl	%ebx, %ebx
LBB0_41:
	subl	(%rax), %ebx
LBB0_42:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_43:
	cmpq	$0, 40(%r12)
	je	LBB0_45
## %bb.44:
	leaq	40(%r12), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, -96(%rbp)
	jmp	LBB0_46
LBB0_45:
	leaq	-136(%rbp), %rsi
	movq	%r14, %rdi
	callq	_nl80211_get_ap_channel
	testl	%eax, %eax
	je	LBB0_50
LBB0_46:
	leaq	-96(%rbp), %rsi
	movq	%r14, %rdi
	callq	_cfg80211_reg_can_beacon
	testl	%eax, %eax
	je	LBB0_50
## %bb.47:
	movl	56(%r12), %edi
	leaq	-96(%rbp), %rsi
	callq	_cfg80211_chandef_dfs_required
	testl	%eax, %eax
	js	LBB0_51
## %bb.48:
	je	LBB0_52
## %bb.49:
	movl	-88(%rbp), %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$1, -108(%rbp)
	jmp	LBB0_53
LBB0_50:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_40
LBB0_51:
	movl	%eax, %ebx
	jmp	LBB0_42
LBB0_52:
	xorl	%ebx, %ebx
LBB0_53:
	leaq	4(%r14), %rdi
	movq	%rdi, -144(%rbp)                ## 8-byte Spill
	callq	_mutex_lock
	movq	(%r12), %rdx
	movq	-96(%rbp), %rcx
	movq	_CHAN_MODE_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%ebx, %r9d
	callq	_cfg80211_can_use_iftype_chan
	movl	%eax, %ebx
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	callq	_mutex_unlock
	testl	%ebx, %ebx
	jne	LBB0_42
## %bb.54:
	movq	(%r13), %rax
	movq	_NL80211_ATTR_ACL_POLICY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_57
## %bb.55:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_parse_acl_data
	movl	%eax, -104(%rbp)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_57
## %bb.56:
	movl	-104(%rbp), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_42
LBB0_57:
	leaq	-136(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_rdev_start_ap
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_59
## %bb.58:
	leaq	-96(%rbp), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, 40(%r12)
	movq	-80(%rbp), %rax
	movq	%rax, 32(%r12)
	movq	-96(%rbp), %rax
	movq	%rax, 24(%r12)
	movq	-136(%rbp), %rdx
	movq	%rdx, 8(%r12)
	movl	16(%r12), %edi
	movl	-100(%rbp), %esi
	callq	_memcpy
LBB0_59:
	movl	-104(%rbp), %edi
	callq	_kfree
	jmp	LBB0_42
	.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	_EALREADY,4,2                   ## @EALREADY
	.comm	_NL80211_ATTR_BEACON_INTERVAL,8,3 ## @NL80211_ATTR_BEACON_INTERVAL
	.comm	_NL80211_ATTR_DTIM_PERIOD,8,3   ## @NL80211_ATTR_DTIM_PERIOD
	.comm	_NL80211_ATTR_BEACON_HEAD,8,3   ## @NL80211_ATTR_BEACON_HEAD
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NL80211_ATTR_SSID,8,3          ## @NL80211_ATTR_SSID
	.comm	_IEEE80211_MAX_SSID_LEN,8,3     ## @IEEE80211_MAX_SSID_LEN
	.comm	_NL80211_ATTR_HIDDEN_SSID,8,3   ## @NL80211_ATTR_HIDDEN_SSID
	.comm	_NL80211_HIDDEN_SSID_NOT_IN_USE,8,3 ## @NL80211_HIDDEN_SSID_NOT_IN_USE
	.comm	_NL80211_HIDDEN_SSID_ZERO_LEN,8,3 ## @NL80211_HIDDEN_SSID_ZERO_LEN
	.comm	_NL80211_HIDDEN_SSID_ZERO_CONTENTS,8,3 ## @NL80211_HIDDEN_SSID_ZERO_CONTENTS
	.comm	_NL80211_ATTR_PRIVACY,8,3       ## @NL80211_ATTR_PRIVACY
	.comm	_NL80211_ATTR_AUTH_TYPE,8,3     ## @NL80211_ATTR_AUTH_TYPE
	.comm	_NL80211_CMD_START_AP,4,2       ## @NL80211_CMD_START_AP
	.comm	_NL80211_AUTHTYPE_AUTOMATIC,8,3 ## @NL80211_AUTHTYPE_AUTOMATIC
	.comm	_NL80211_MAX_NR_CIPHER_SUITES,4,2 ## @NL80211_MAX_NR_CIPHER_SUITES
	.comm	_NL80211_ATTR_INACTIVITY_TIMEOUT,8,3 ## @NL80211_ATTR_INACTIVITY_TIMEOUT
	.comm	_NL80211_FEATURE_INACTIVITY_TIMER,4,2 ## @NL80211_FEATURE_INACTIVITY_TIMER
	.comm	_NL80211_ATTR_P2P_CTWINDOW,8,3  ## @NL80211_ATTR_P2P_CTWINDOW
	.comm	_NL80211_FEATURE_P2P_GO_CTWIN,4,2 ## @NL80211_FEATURE_P2P_GO_CTWIN
	.comm	_NL80211_ATTR_P2P_OPPPS,8,3     ## @NL80211_ATTR_P2P_OPPPS
	.comm	_NL80211_FEATURE_P2P_GO_OPPPS,4,2 ## @NL80211_FEATURE_P2P_GO_OPPPS
	.comm	_NL80211_ATTR_WIPHY_FREQ,8,3    ## @NL80211_ATTR_WIPHY_FREQ
	.comm	_CHAN_MODE_SHARED,4,2           ## @CHAN_MODE_SHARED
	.comm	_NL80211_ATTR_ACL_POLICY,8,3    ## @NL80211_ATTR_ACL_POLICY
	.no_dead_strip	_nl80211_start_ap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nl80211_start_ap
_nl80211_start_ap:                      ; @nl80211_start_ap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	ldr	x8, [x1, #8]
	ldr	x20, [x8, #8]
	ldr	x19, [x20, #8]
	ldr	x9, [x19]
Lloh0:
	adrp	x10, _NL80211_IFTYPE_AP@GOTPAGE
Lloh1:
	ldr	x10, [x10, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x23, _NL80211_IFTYPE_P2P_GO@GOTPAGE
Lloh4:
	ldr	x23, [x23, _NL80211_IFTYPE_P2P_GO@GOTPAGEOFF]
	ldr	x11, [x23]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_37
; %bb.1:
	ldr	x21, [x8]
	ldr	x8, [x21, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_37
; %bb.2:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _EALREADY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EALREADY@GOTPAGEOFF]
	b	LBB0_38
LBB0_4:
	mov	x22, x1
	mov	x0, sp
	mov	w1, #0
	mov	w2, #96
	bl	_memset
	ldr	x8, [x22]
Lloh7:
	adrp	x25, _NL80211_ATTR_BEACON_INTERVAL@GOTPAGE
Lloh8:
	ldr	x25, [x25, _NL80211_ATTR_BEACON_INTERVAL@GOTPAGEOFF]
	ldr	x9, [x25]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_47
; %bb.5:
Lloh9:
	adrp	x24, _NL80211_ATTR_DTIM_PERIOD@GOTPAGE
Lloh10:
	ldr	x24, [x24, _NL80211_ATTR_DTIM_PERIOD@GOTPAGEOFF]
	ldr	x9, [x24]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_47
; %bb.6:
Lloh11:
	adrp	x9, _NL80211_ATTR_BEACON_HEAD@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NL80211_ATTR_BEACON_HEAD@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_47
; %bb.7:
	mov	x8, sp
	add	x1, x8, #88
	mov	x0, x22
	bl	_nl80211_parse_beacon
	cbnz	w0, LBB0_39
; %bb.8:
	ldr	x8, [x22]
	ldr	x9, [x25]
	ldr	x0, [x8, x9, lsl #3]
	bl	_nla_get_u32
	str	x0, [sp, #56]
	ldr	x8, [x22]
	ldr	x9, [x24]
	ldr	x0, [x8, x9, lsl #3]
	bl	_nla_get_u32
	str	x0, [sp, #80]
	ldr	x1, [sp, #56]
	mov	x0, x21
	bl	_cfg80211_validate_beacon_int
	cbnz	w0, LBB0_39
; %bb.9:
	ldr	x8, [x22]
Lloh14:
	adrp	x24, _NL80211_ATTR_SSID@GOTPAGE
Lloh15:
	ldr	x24, [x24, _NL80211_ATTR_SSID@GOTPAGEOFF]
	ldr	x9, [x24]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_13
; %bb.10:
	bl	_nla_data
	str	w0, [sp, #36]
	ldr	x8, [x22]
	ldr	x9, [x24]
	ldr	x0, [x8, x9, lsl #3]
	bl	_nla_len
	str	x0, [sp]
	cbz	x0, LBB0_47
; %bb.11:
Lloh16:
	adrp	x8, _IEEE80211_MAX_SSID_LEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IEEE80211_MAX_SSID_LEN@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_47
; %bb.12:
	ldr	x8, [x22]
LBB0_13:
Lloh19:
	adrp	x9, _NL80211_ATTR_HIDDEN_SSID@GOTPAGE
Lloh20:
	ldr	x9, [x9, _NL80211_ATTR_HIDDEN_SSID@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_18
; %bb.14:
	bl	_nla_get_u32
	str	x0, [sp, #8]
Lloh22:
	adrp	x8, _NL80211_HIDDEN_SSID_NOT_IN_USE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NL80211_HIDDEN_SSID_NOT_IN_USE@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_17
; %bb.15:
Lloh25:
	adrp	x8, _NL80211_HIDDEN_SSID_ZERO_LEN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _NL80211_HIDDEN_SSID_ZERO_LEN@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_17
; %bb.16:
Lloh28:
	adrp	x8, _NL80211_HIDDEN_SSID_ZERO_CONTENTS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _NL80211_HIDDEN_SSID_ZERO_CONTENTS@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_47
LBB0_17:
	ldr	x8, [x22]
LBB0_18:
Lloh31:
	adrp	x9, _NL80211_ATTR_PRIVACY@GOTPAGE
Lloh32:
	ldr	x9, [x9, _NL80211_ATTR_PRIVACY@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cmp	x9, #0
	cset	w9, ne
	str	w9, [sp, #16]
Lloh34:
	adrp	x9, _NL80211_ATTR_AUTH_TYPE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _NL80211_ATTR_AUTH_TYPE@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_20
; %bb.19:
	bl	_nla_get_u32
	mov	x1, x0
	str	x0, [sp, #72]
Lloh37:
	adrp	x8, _NL80211_CMD_START_AP@GOTPAGE
Lloh38:
	ldr	x8, [x8, _NL80211_CMD_START_AP@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_nl80211_valid_auth_type
	cbnz	w0, LBB0_21
	b	LBB0_47
LBB0_20:
Lloh40:
	adrp	x8, _NL80211_AUTHTYPE_AUTOMATIC@GOTPAGE
Lloh41:
	ldr	x8, [x8, _NL80211_AUTHTYPE_AUTOMATIC@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	str	x8, [sp, #72]
LBB0_21:
	mov	x8, sp
	add	x2, x8, #68
Lloh43:
	adrp	x8, _NL80211_MAX_NR_CIPHER_SUITES@GOTPAGE
Lloh44:
	ldr	x8, [x8, _NL80211_MAX_NR_CIPHER_SUITES@GOTPAGEOFF]
Lloh45:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_nl80211_crypto_settings
	cbnz	w0, LBB0_39
; %bb.22:
	ldr	x8, [x22]
Lloh46:
	adrp	x9, _NL80211_ATTR_INACTIVITY_TIMEOUT@GOTPAGE
Lloh47:
	ldr	x9, [x9, _NL80211_ATTR_INACTIVITY_TIMEOUT@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_25
; %bb.23:
	ldr	w8, [x21]
Lloh49:
	adrp	x9, _NL80211_FEATURE_INACTIVITY_TIMER@GOTPAGE
Lloh50:
	ldr	x9, [x9, _NL80211_FEATURE_INACTIVITY_TIMER@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_37
; %bb.24:
	bl	_nla_get_u16
	str	w0, [sp, #64]
	ldr	x8, [x22]
LBB0_25:
Lloh52:
	adrp	x9, _NL80211_ATTR_P2P_CTWINDOW@GOTPAGE
Lloh53:
	ldr	x9, [x9, _NL80211_ATTR_P2P_CTWINDOW@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_30
; %bb.26:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_47
; %bb.27:
	bl	_nla_get_u8
	str	w0, [sp, #20]
	cmp	w0, #128
	b.ge	LBB0_47
; %bb.28:
	cbz	w0, LBB0_30
; %bb.29:
	ldr	w8, [x21]
Lloh55:
	adrp	x9, _NL80211_FEATURE_P2P_GO_CTWIN@GOTPAGE
Lloh56:
	ldr	x9, [x9, _NL80211_FEATURE_P2P_GO_CTWIN@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_47
LBB0_30:
	ldr	x8, [x22]
Lloh58:
	adrp	x9, _NL80211_ATTR_P2P_OPPPS@GOTPAGE
Lloh59:
	ldr	x9, [x9, _NL80211_ATTR_P2P_OPPPS@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_35
; %bb.31:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_47
; %bb.32:
	bl	_nla_get_u8
	cmp	w0, #2
	b.ge	LBB0_47
; %bb.33:
	str	w0, [sp, #24]
	cbz	w0, LBB0_35
; %bb.34:
	ldr	w8, [x21]
Lloh61:
	adrp	x9, _NL80211_FEATURE_P2P_GO_OPPPS@GOTPAGE
Lloh62:
	ldr	x9, [x9, _NL80211_FEATURE_P2P_GO_OPPPS@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_47
LBB0_35:
	ldr	x8, [x22]
Lloh64:
	adrp	x9, _NL80211_ATTR_WIPHY_FREQ@GOTPAGE
Lloh65:
	ldr	x9, [x9, _NL80211_ATTR_WIPHY_FREQ@GOTPAGEOFF]
Lloh66:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_40
; %bb.36:
	mov	x8, sp
	add	x2, x8, #40
	mov	x0, x21
	mov	x1, x22
	bl	_nl80211_parse_chandef
	cbnz	w0, LBB0_39
	b	LBB0_43
LBB0_37:
Lloh67:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh68:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_38:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_39:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_40:
	mov	x8, x19
	ldr	x9, [x8, #40]!
	cbz	x9, LBB0_42
; %bb.41:
	ldr	q0, [x8]
	stur	q0, [sp, #40]
	b	LBB0_43
LBB0_42:
	mov	x1, sp
	mov	x0, x21
	bl	_nl80211_get_ap_channel
	cbz	w0, LBB0_47
LBB0_43:
	mov	x8, sp
	add	x23, x8, #40
	mov	x0, x21
	mov	x1, x23
	bl	_cfg80211_reg_can_beacon
	cbz	w0, LBB0_47
; %bb.44:
	ldr	w0, [x19, #56]
	mov	x1, x23
	bl	_cfg80211_chandef_dfs_required
	mov	x8, x0
	tbnz	w0, #31, LBB0_48
; %bb.45:
	cbz	w8, LBB0_49
; %bb.46:
	ldr	w0, [sp, #48]
	bl	_BIT
	mov	x24, x0
	mov	w8, #1
	str	w8, [sp, #28]
	b	LBB0_50
LBB0_47:
Lloh69:
	adrp	x8, _EINVAL@GOTPAGE
Lloh70:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_38
LBB0_48:
	mov	x0, x8
	b	LBB0_39
LBB0_49:
	mov	w24, #0
LBB0_50:
	add	x25, x21, #4
	mov	x0, x25
	bl	_mutex_lock
	ldr	x2, [x19]
	ldr	x3, [sp, #40]
Lloh71:
	adrp	x8, _CHAN_MODE_SHARED@GOTPAGE
Lloh72:
	ldr	x8, [x8, _CHAN_MODE_SHARED@GOTPAGEOFF]
Lloh73:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x19
	mov	x5, x24
	bl	_cfg80211_can_use_iftype_chan
	mov	x24, x0
	mov	x0, x25
	bl	_mutex_unlock
	mov	x0, x24
	cbnz	w24, LBB0_39
; %bb.51:
	ldr	x8, [x22]
Lloh74:
	adrp	x9, _NL80211_ATTR_ACL_POLICY@GOTPAGE
Lloh75:
	ldr	x9, [x9, _NL80211_ATTR_ACL_POLICY@GOTPAGEOFF]
Lloh76:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_54
; %bb.52:
	mov	x0, x21
	mov	x1, x22
	bl	_parse_acl_data
	str	w0, [sp, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_54
; %bb.53:
	ldr	w0, [sp, #32]
	bl	_PTR_ERR
	b	LBB0_39
LBB0_54:
	mov	x2, sp
	mov	x0, x21
	mov	x1, x20
	bl	_rdev_start_ap
	mov	x20, x0
	cbnz	w0, LBB0_56
; %bb.55:
	ldr	q0, [x23]
	stur	q0, [x19, #40]
	ldr	x8, [sp, #56]
	str	x8, [x19, #32]
	ldr	x8, [sp, #40]
	ldr	x2, [sp]
	str	x8, [x19, #24]
	str	x2, [x19, #8]
	ldr	w0, [x19, #16]
	ldr	w1, [sp, #36]
	bl	_memcpy
LBB0_56:
	ldr	w0, [sp, #32]
	bl	_kfree
	mov	x0, x20
	b	LBB0_39
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.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	_EALREADY,4,2                   ; @EALREADY
	.comm	_NL80211_ATTR_BEACON_INTERVAL,8,3 ; @NL80211_ATTR_BEACON_INTERVAL
	.comm	_NL80211_ATTR_DTIM_PERIOD,8,3   ; @NL80211_ATTR_DTIM_PERIOD
	.comm	_NL80211_ATTR_BEACON_HEAD,8,3   ; @NL80211_ATTR_BEACON_HEAD
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NL80211_ATTR_SSID,8,3          ; @NL80211_ATTR_SSID
	.comm	_IEEE80211_MAX_SSID_LEN,8,3     ; @IEEE80211_MAX_SSID_LEN
	.comm	_NL80211_ATTR_HIDDEN_SSID,8,3   ; @NL80211_ATTR_HIDDEN_SSID
	.comm	_NL80211_HIDDEN_SSID_NOT_IN_USE,8,3 ; @NL80211_HIDDEN_SSID_NOT_IN_USE
	.comm	_NL80211_HIDDEN_SSID_ZERO_LEN,8,3 ; @NL80211_HIDDEN_SSID_ZERO_LEN
	.comm	_NL80211_HIDDEN_SSID_ZERO_CONTENTS,8,3 ; @NL80211_HIDDEN_SSID_ZERO_CONTENTS
	.comm	_NL80211_ATTR_PRIVACY,8,3       ; @NL80211_ATTR_PRIVACY
	.comm	_NL80211_ATTR_AUTH_TYPE,8,3     ; @NL80211_ATTR_AUTH_TYPE
	.comm	_NL80211_CMD_START_AP,4,2       ; @NL80211_CMD_START_AP
	.comm	_NL80211_AUTHTYPE_AUTOMATIC,8,3 ; @NL80211_AUTHTYPE_AUTOMATIC
	.comm	_NL80211_MAX_NR_CIPHER_SUITES,4,2 ; @NL80211_MAX_NR_CIPHER_SUITES
	.comm	_NL80211_ATTR_INACTIVITY_TIMEOUT,8,3 ; @NL80211_ATTR_INACTIVITY_TIMEOUT
	.comm	_NL80211_FEATURE_INACTIVITY_TIMER,4,2 ; @NL80211_FEATURE_INACTIVITY_TIMER
	.comm	_NL80211_ATTR_P2P_CTWINDOW,8,3  ; @NL80211_ATTR_P2P_CTWINDOW
	.comm	_NL80211_FEATURE_P2P_GO_CTWIN,4,2 ; @NL80211_FEATURE_P2P_GO_CTWIN
	.comm	_NL80211_ATTR_P2P_OPPPS,8,3     ; @NL80211_ATTR_P2P_OPPPS
	.comm	_NL80211_FEATURE_P2P_GO_OPPPS,4,2 ; @NL80211_FEATURE_P2P_GO_OPPPS
	.comm	_NL80211_ATTR_WIPHY_FREQ,8,3    ; @NL80211_ATTR_WIPHY_FREQ
	.comm	_CHAN_MODE_SHARED,4,2           ; @CHAN_MODE_SHARED
	.comm	_NL80211_ATTR_ACL_POLICY,8,3    ; @NL80211_ATTR_ACL_POLICY
	.no_dead_strip	_nl80211_start_ap
.subsections_via_symbols
