	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_supplicant_conf_ap
_wpa_supplicant_conf_ap:                ## @wpa_supplicant_conf_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	72(%rdx), %rax
	movq	(%rax), %r13
	movl	52(%rdi), %eax
	movl	%eax, 64(%rdx)
	movl	352(%r13), %edi
	movl	48(%r14), %esi
	movl	$4, %edx
	callq	_os_strlcpy
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_wpa_supplicant_conf_ap_ht
	movl	$-1, %r12d
	testq	%rax, %rax
	jne	LBB0_62
## %bb.1:
	movl	(%rbx), %edx
	cmpl	$2, %edx
	jl	LBB0_3
## %bb.2:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_62
LBB0_3:
	movl	%edx, (%r13)
	movl	180(%rbx), %edi
	movl	40(%r14), %edx
	movl	44(%r14), %esi
	callq	_ieee80211_is_dfs
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	cmpb	$0, (%rax)
	je	LBB0_6
## %bb.5:
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, (%r15)
	movb	(%rax), %al
	movq	8(%r15), %rcx
	movb	%al, (%rcx)
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movb	1(%rax), %al
	movq	8(%r15), %rcx
	movb	%al, 1(%rcx)
	movq	8(%r15), %rax
	movb	$32, 2(%rax)
LBB0_6:
	movl	16(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_7
## %bb.8:
	movl	264(%r13), %edi
	movl	160(%rbx), %esi
	callq	_os_memcpy
	movl	16(%rbx), %eax
	movl	%eax, 192(%r13)
	movl	$1, 196(%r13)
	movl	72(%rbx), %eax
	movl	%eax, 328(%r13)
	movq	152(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, 320(%r13)
LBB0_10:
	movq	24(%rbx), %rdi
	callq	_wpa_key_mgmt_wpa_psk
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	32(%rbx), %eax
	movl	%eax, 8(%r13)
LBB0_12:
	movq	24(%rbx), %rax
	movq	_DEFAULT_KEY_MGMT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	movq	_WPA_KEY_MGMT_PSK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_14:
	movq	%rax, 16(%r13)
	movl	36(%rbx), %eax
	movl	%eax, 24(%r13)
	cmpq	$0, 144(%rbx)
	je	LBB0_17
## %bb.15:
	movq	256(%r13), %rdi
	movl	$8, %esi
	callq	_bin_clear_free
	movl	$4, %edi
	callq	_os_zalloc
	movq	%rax, 256(%r13)
	testq	%rax, %rax
	je	LBB0_62
## %bb.16:
	movl	4(%rax), %edi
	movl	136(%rbx), %esi
	movq	_PMK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcpy
	movq	256(%r13), %rax
	movl	$1, (%rax)
	movl	$1, 200(%r13)
	jmp	LBB0_32
LBB0_7:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_62
LBB0_17:
	movq	128(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	callq	_os_strdup
	movq	%rax, 248(%r13)
	jmp	LBB0_32
LBB0_19:
	movq	40(%rbx), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	jne	LBB0_23
## %bb.20:
	cmpq	$0, 8(%rax)
	jne	LBB0_23
## %bb.21:
	cmpq	$0, 16(%rax)
	jne	LBB0_23
## %bb.22:
	cmpq	$0, 24(%rax)
	je	LBB0_32
LBB0_23:
	movq	_NUM_WEP_KEYS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_31
## %bb.24:
	movl	$1, %r12d
	testq	%rsi, %rsi
	je	LBB0_29
LBB0_26:
	movq	120(%rbx), %rax
	movl	-4(%rax,%r12,4), %edi
	callq	_os_memdup
	movq	240(%r13), %rcx
	movq	%rax, -8(%rcx,%r12,8)
	movq	240(%r13), %rax
	cmpq	$0, -8(%rax,%r12,8)
	je	LBB0_27
## %bb.28:
	movq	40(%rbx), %rax
	movq	-8(%rax,%r12,8), %rcx
	movq	216(%r13), %rdx
	movq	%rcx, -8(%rdx,%r12,8)
	movq	_NUM_WEP_KEYS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movslq	%ecx, %rdx
	cmpq	%rdx, %r12
	jge	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	(%rax,%r12,8), %rsi
	incq	%r12
	testq	%rsi, %rsi
	jne	LBB0_26
	jmp	LBB0_29
LBB0_31:
	movl	112(%rbx), %eax
	movl	%eax, 232(%r13)
	movl	$1, 224(%r13)
LBB0_32:
	movq	8(%r14), %rax
	cmpq	$0, 144(%rax)
	je	LBB0_35
## %bb.33:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	140(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	8(%r14), %rax
	movq	144(%rax), %rcx
	movq	%rcx, 312(%r13)
	movl	140(%rax), %ecx
	movl	%ecx, 308(%r13)
	movl	136(%rax), %ecx
	movl	%ecx, 304(%r13)
	movl	8(%rax), %edx
	testl	%edx, %edx
	je	LBB0_35
## %bb.34:
	movl	(%r12), %edi
	movl	12(%rax), %ecx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	8(%r14), %rax
	movl	8(%rax), %ecx
	movl	%ecx, 28(%r13)
	movl	12(%rax), %ecx
	movl	%ecx, 32(%r13)
	movl	$1, 36(%r13)
LBB0_35:
	movq	104(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_37
## %bb.36:
	movq	%rcx, 296(%r13)
LBB0_37:
	movq	96(%rbx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_39
## %bb.38:
	movq	128(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_40
LBB0_39:
	movq	%rcx, 288(%r13)
LBB0_40:
	movl	48(%rbx), %ecx
	testl	%ecx, %ecx
	jne	LBB0_42
## %bb.41:
	movl	16(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_43
LBB0_42:
	movl	%ecx, 40(%r15)
LBB0_43:
	movl	8(%r13), %edi
	movl	40(%r13), %edx
	testb	$2, %dil
	je	LBB0_46
## %bb.44:
	testl	%edx, %edx
	jne	LBB0_46
## %bb.45:
	movl	24(%r13), %edx
	movl	%edx, 40(%r13)
LBB0_46:
	movl	24(%r13), %esi
	callq	_wpa_select_ap_group_cipher
	movl	%eax, 44(%r13)
	movl	8(%r13), %ecx
	movq	280(%r13), %rdx
	testl	%ecx, %ecx
	je	LBB0_63
## %bb.47:
	testq	%rdx, %rdx
	jne	LBB0_48
## %bb.49:
	movq	_SECURITY_WPA_PSK@GOTPCREL(%rip), %rdx
	jmp	LBB0_50
LBB0_63:
	testq	%rdx, %rdx
	je	LBB0_70
## %bb.64:
	movq	_WPA_CIPHER_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SECURITY_IEEE_802_1X@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 208(%r13)
	movl	48(%r13), %ecx
	movl	%ecx, 228(%r13)
	cmpl	$13, %ecx
	jl	LBB0_65
## %bb.66:
	movq	_WPA_CIPHER_WEP104@GOTPCREL(%rip), %rdx
	jmp	LBB0_67
LBB0_48:
	movq	_SECURITY_WPA@GOTPCREL(%rip), %rdx
LBB0_50:
	movq	(%rdx), %rdx
	movq	%rdx, 208(%r13)
	cmpl	$86399, 52(%r13)                ## imm = 0x1517F
	jg	LBB0_57
## %bb.51:
	andl	$2, %ecx
	je	LBB0_57
## %bb.52:
	movq	_WPA_CIPHER_CCMP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_56
## %bb.53:
	movq	_WPA_CIPHER_GCMP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_56
## %bb.54:
	movq	_WPA_CIPHER_CCMP_256@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_56
## %bb.55:
	movq	_WPA_CIPHER_GCMP_256@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_57
LBB0_56:
	movl	$86400, 52(%r13)                ## imm = 0x15180
	jmp	LBB0_57
LBB0_70:
	cmpl	$0, 224(%r13)
	je	LBB0_75
## %bb.71:
	movq	216(%r13), %rax
	cmpq	$13, (%rax)
	jl	LBB0_72
## %bb.73:
	movq	_WPA_CIPHER_WEP104@GOTPCREL(%rip), %rax
	jmp	LBB0_74
LBB0_65:
	movq	_WPA_CIPHER_WEP40@GOTPCREL(%rip), %rdx
LBB0_67:
	testl	%ecx, %ecx
	je	LBB0_69
## %bb.68:
	movl	(%rdx), %eax
	jmp	LBB0_69
LBB0_75:
	movq	_SECURITY_PLAINTEXT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 208(%r13)
	movq	_WPA_CIPHER_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_69
LBB0_27:
	movl	$-1, %r12d
	jmp	LBB0_62
LBB0_72:
	movq	_WPA_CIPHER_WEP40@GOTPCREL(%rip), %rax
LBB0_74:
	movl	(%rax), %eax
	movq	_SECURITY_STATIC_WEP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 208(%r13)
LBB0_69:
	movl	%eax, 44(%r13)
	movl	%eax, 24(%r13)
	movl	%eax, 40(%r13)
LBB0_57:
	movq	(%r14), %rcx
	movq	8(%r14), %rax
	movq	24(%rax), %rdx
	cmpq	%rdx, %rcx
	movq	%rdx, %rsi
	cmovlq	%rcx, %rsi
	testq	%rcx, %rcx
	cmoveq	%rdx, %rsi
	movq	%rsi, 88(%r13)
	cmpl	$0, 4(%r13)
	jne	LBB0_59
## %bb.58:
	movl	32(%rax), %ecx
	movl	%ecx, 4(%r13)
LBB0_59:
	movl	56(%rax), %ecx
	movl	%ecx, 108(%r13)
	movq	48(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_61
## %bb.60:
	callq	_wpabuf_dup
	movl	%eax, 104(%r13)
	movq	8(%r14), %rax
LBB0_61:
	movl	40(%rax), %ecx
	movl	%ecx, 100(%r13)
	movl	36(%rax), %eax
	movl	%eax, 96(%r13)
	xorl	%r12d, %r12d
LBB0_62:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid pbss value(%d) for AP mode"

L_.str.1:                               ## @.str.1
	.asciz	"No SSID configured for AP mode"

	.comm	_DEFAULT_KEY_MGMT,8,3           ## @DEFAULT_KEY_MGMT
	.comm	_WPA_KEY_MGMT_PSK,8,3           ## @WPA_KEY_MGMT_PSK
	.comm	_PMK_LEN,4,2                    ## @PMK_LEN
	.comm	_NUM_WEP_KEYS,4,2               ## @NUM_WEP_KEYS
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"P2P: Enable Interworking with access_network_type: %d"

L_.str.3:                               ## @.str.3
	.asciz	"P2P: Venue group: %d  Venue type: %d"

	.comm	_SECURITY_WPA,8,3               ## @SECURITY_WPA
	.comm	_SECURITY_WPA_PSK,8,3           ## @SECURITY_WPA_PSK
	.comm	_WPA_CIPHER_NONE,8,3            ## @WPA_CIPHER_NONE
	.comm	_SECURITY_IEEE_802_1X,8,3       ## @SECURITY_IEEE_802_1X
	.comm	_WPA_CIPHER_WEP104,4,2          ## @WPA_CIPHER_WEP104
	.comm	_WPA_CIPHER_WEP40,4,2           ## @WPA_CIPHER_WEP40
	.comm	_SECURITY_STATIC_WEP,8,3        ## @SECURITY_STATIC_WEP
	.comm	_SECURITY_PLAINTEXT,8,3         ## @SECURITY_PLAINTEXT
	.comm	_WPA_CIPHER_CCMP,4,2            ## @WPA_CIPHER_CCMP
	.comm	_WPA_CIPHER_GCMP,4,2            ## @WPA_CIPHER_GCMP
	.comm	_WPA_CIPHER_CCMP_256,4,2        ## @WPA_CIPHER_CCMP_256
	.comm	_WPA_CIPHER_GCMP_256,4,2        ## @WPA_CIPHER_GCMP_256
	.comm	_DEFAULT_FRAGMENT_SIZE,8,3      ## @DEFAULT_FRAGMENT_SIZE
	.comm	_HOSTAPD_MODE_IEEE80211G,8,3    ## @HOSTAPD_MODE_IEEE80211G
	.comm	_MGMT_FRAME_PROTECTION_DEFAULT,8,3 ## @MGMT_FRAME_PROTECTION_DEFAULT
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.comm	_WPAS_MODE_P2P_GO,8,3           ## @WPAS_MODE_P2P_GO
	.comm	_WPAS_MODE_P2P_GROUP_FORMATION,8,3 ## @WPAS_MODE_P2P_GROUP_FORMATION
	.comm	_WPS_DEV_TYPE_LEN,4,2           ## @WPS_DEV_TYPE_LEN
	.comm	_WPS_UUID_LEN,4,2               ## @WPS_UUID_LEN
	.no_dead_strip	_wpa_supplicant_conf_ap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_supplicant_conf_ap
_wpa_supplicant_conf_ap:                ; @wpa_supplicant_conf_ap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x2, #72]
	ldr	x22, [x8]
	ldp	w1, w8, [x0, #48]
	str	w8, [x2, #64]
	ldr	w0, [x22, #352]
	mov	w2, #4
	bl	_os_strlcpy
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_wpa_supplicant_conf_ap_ht
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #-1
	b	LBB0_63
LBB0_2:
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.3:
Lloh0:
	adrp	x9, _MSG_ERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MSG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_16
LBB0_4:
	str	w8, [x22]
	ldr	w0, [x21, #180]
	ldp	w2, w1, [x19, #40]
	bl	_ieee80211_is_dfs
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldrb	w9, [x8]
	cbz	w9, LBB0_7
; %bb.6:
	movi.2s	v0, #1
	str	d0, [x20]
	ldrb	w8, [x8]
	ldr	x9, [x20, #8]
	strb	w8, [x9]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldrb	w8, [x8, #1]
	ldr	x9, [x20, #8]
	strb	w8, [x9, #1]
	ldr	x8, [x20, #8]
	mov	w9, #32
	strb	w9, [x8, #2]
LBB0_7:
	ldr	w2, [x21, #16]
	cbz	w2, LBB0_15
; %bb.8:
	ldr	w0, [x22, #264]
	ldr	w1, [x21, #160]
	bl	_os_memcpy
	ldr	w8, [x21, #16]
	mov	w9, #1
	stp	w8, w9, [x22, #192]
	ldr	w8, [x21, #72]
	str	w8, [x22, #328]
	ldr	x8, [x21, #152]
	cbz	x8, LBB0_10
; %bb.9:
	str	x8, [x22, #320]
LBB0_10:
	ldr	x0, [x21, #24]
	bl	_wpa_key_mgmt_wpa_psk
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w8, [x21, #32]
	str	w8, [x22, #8]
LBB0_12:
	ldr	x8, [x21, #24]
Lloh5:
	adrp	x9, _DEFAULT_KEY_MGMT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DEFAULT_KEY_MGMT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _WPA_KEY_MGMT_PSK@GOTPAGE
Lloh9:
	ldr	x10, [x10, _WPA_KEY_MGMT_PSK@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x8, x9
	csel	x8, x10, x8, eq
	str	x8, [x22, #16]
	ldr	w8, [x21, #36]
	str	w8, [x22, #24]
	ldr	x8, [x21, #144]
	cbz	x8, LBB0_17
; %bb.13:
	ldr	x0, [x22, #256]
	mov	w1, #8
	bl	_bin_clear_free
	mov	w0, #4
	bl	_os_zalloc
	str	x0, [x22, #256]
	cbz	x0, LBB0_1
; %bb.14:
	ldr	w0, [x0, #4]
	ldr	w1, [x21, #136]
Lloh11:
	adrp	x8, _PMK_LEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PMK_LEN@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_os_memcpy
	ldr	x8, [x22, #256]
	mov	w9, #1
	str	w9, [x8]
	str	w9, [x22, #200]
	b	LBB0_30
LBB0_15:
Lloh14:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_16:
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_63
LBB0_17:
	ldr	x0, [x21, #128]
	cbz	x0, LBB0_19
; %bb.18:
	bl	_os_strdup
	str	x0, [x22, #248]
	b	LBB0_30
LBB0_19:
	ldr	x8, [x21, #40]
	ldr	x1, [x8]
	cbnz	x1, LBB0_23
; %bb.20:
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_23
; %bb.21:
	ldr	x9, [x8, #16]
	cbnz	x9, LBB0_23
; %bb.22:
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_30
LBB0_23:
Lloh19:
	adrp	x23, _NUM_WEP_KEYS@GOTPAGE
Lloh20:
	ldr	x23, [x23, _NUM_WEP_KEYS@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w9, #1
	b.lt	LBB0_29
; %bb.24:
	mov	x24, #0
	cbz	x1, LBB0_27
LBB0_25:
	ldr	x8, [x21, #120]
	ldr	w0, [x8, x24, lsl #2]
	bl	_os_memdup
	ldr	x8, [x22, #240]
	lsl	x9, x24, #3
	str	x0, [x8, x9]
	ldr	x8, [x22, #240]
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_1
; %bb.26:
	ldr	x8, [x21, #40]
	ldr	x10, [x8, x9]
	ldr	x11, [x22, #216]
	str	x10, [x11, x9]
	ldr	w9, [x23]
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	add	x10, x24, #1
	cmp	x10, w9, sxtw
	b.ge	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	add	x11, x8, x24, lsl #3
	ldr	x1, [x11, #8]
	mov	x24, x10
	cbnz	x1, LBB0_25
	b	LBB0_27
LBB0_29:
	ldr	w8, [x21, #112]
	str	w8, [x22, #232]
	mov	w8, #1
	str	w8, [x22, #224]
LBB0_30:
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #144]
	cbz	x9, LBB0_33
; %bb.31:
Lloh21:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh22:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w8, [x8, #140]
	str	x8, [sp]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #144]
	str	x9, [x22, #312]
	ldr	d0, [x8, #136]
	str	d0, [x22, #304]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_33
; %bb.32:
	ldr	w0, [x23]
	ldr	w8, [x8, #12]
	stp	x9, x8, [sp]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19, #8]
	ldr	d0, [x8, #8]
	stur	d0, [x22, #28]
	mov	w9, #1
	str	w9, [x22, #36]
LBB0_33:
	ldr	x9, [x21, #104]
	cbz	x9, LBB0_35
; %bb.34:
	str	x9, [x22, #296]
LBB0_35:
	ldr	x9, [x21, #96]
	cbnz	x9, LBB0_37
; %bb.36:
	ldr	x9, [x8, #128]
	cbz	x9, LBB0_38
LBB0_37:
	str	x9, [x22, #288]
LBB0_38:
	ldr	w9, [x21, #48]
	cbnz	w9, LBB0_40
; %bb.39:
	ldr	w9, [x8, #16]
	cbz	w9, LBB0_41
LBB0_40:
	str	w9, [x20, #40]
LBB0_41:
	ldr	w0, [x22, #8]
	ldr	w2, [x22, #40]
	tbz	w0, #1, LBB0_44
; %bb.42:
	cbnz	w2, LBB0_44
; %bb.43:
	ldr	w2, [x22, #24]
	str	w2, [x22, #40]
LBB0_44:
	ldr	w1, [x22, #24]
	bl	_wpa_select_ap_group_cipher
	str	w0, [x22, #44]
	ldr	w9, [x22, #8]
	ldr	x10, [x22, #280]
	cbz	w9, LBB0_52
; %bb.45:
	mov	w8, #20863
	movk	w8, #1, lsl #16
Lloh27:
	adrp	x11, _SECURITY_WPA_PSK@GOTPAGE
Lloh28:
	ldr	x11, [x11, _SECURITY_WPA_PSK@GOTPAGEOFF]
Lloh29:
	adrp	x12, _SECURITY_WPA@GOTPAGE
Lloh30:
	ldr	x12, [x12, _SECURITY_WPA@GOTPAGEOFF]
	cmp	x10, #0
	csel	x10, x11, x12, eq
	ldr	x10, [x10]
	str	x10, [x22, #208]
	ldr	w10, [x22, #52]
	cmp	w10, w8
	b.gt	LBB0_58
; %bb.46:
	tbz	w9, #1, LBB0_58
; %bb.47:
Lloh31:
	adrp	x9, _WPA_CIPHER_CCMP@GOTPAGE
Lloh32:
	ldr	x9, [x9, _WPA_CIPHER_CCMP@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	cmp	w0, w9
	b.eq	LBB0_51
; %bb.48:
Lloh34:
	adrp	x9, _WPA_CIPHER_GCMP@GOTPAGE
Lloh35:
	ldr	x9, [x9, _WPA_CIPHER_GCMP@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	cmp	w0, w9
	b.eq	LBB0_51
; %bb.49:
Lloh37:
	adrp	x9, _WPA_CIPHER_CCMP_256@GOTPAGE
Lloh38:
	ldr	x9, [x9, _WPA_CIPHER_CCMP_256@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	cmp	w0, w9
	b.eq	LBB0_51
; %bb.50:
Lloh40:
	adrp	x9, _WPA_CIPHER_GCMP_256@GOTPAGE
Lloh41:
	ldr	x9, [x9, _WPA_CIPHER_GCMP_256@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	cmp	w0, w9
	b.ne	LBB0_58
LBB0_51:
	add	w8, w8, #1
	str	w8, [x22, #52]
	b	LBB0_58
LBB0_52:
	cbz	x10, LBB0_54
; %bb.53:
Lloh43:
	adrp	x8, _WPA_CIPHER_NONE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _WPA_CIPHER_NONE@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _SECURITY_IEEE_802_1X@GOTPAGE
Lloh47:
	ldr	x9, [x9, _SECURITY_IEEE_802_1X@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	str	x9, [x22, #208]
	ldr	w9, [x22, #48]
	str	w9, [x22, #228]
Lloh49:
	adrp	x10, _WPA_CIPHER_WEP104@GOTPAGE
Lloh50:
	ldr	x10, [x10, _WPA_CIPHER_WEP104@GOTPAGEOFF]
Lloh51:
	adrp	x11, _WPA_CIPHER_WEP40@GOTPAGE
Lloh52:
	ldr	x11, [x11, _WPA_CIPHER_WEP40@GOTPAGEOFF]
	cmp	w9, #12
	csel	x10, x10, x11, gt
	ldr	w10, [x10]
	cmp	w9, #0
	csel	w8, w8, w10, eq
	b	LBB0_57
LBB0_54:
	ldr	w8, [x22, #224]
	cbz	w8, LBB0_56
; %bb.55:
	ldr	x8, [x22, #216]
	ldr	x8, [x8]
Lloh53:
	adrp	x9, _WPA_CIPHER_WEP104@GOTPAGE
Lloh54:
	ldr	x9, [x9, _WPA_CIPHER_WEP104@GOTPAGEOFF]
Lloh55:
	adrp	x10, _WPA_CIPHER_WEP40@GOTPAGE
Lloh56:
	ldr	x10, [x10, _WPA_CIPHER_WEP40@GOTPAGEOFF]
	cmp	x8, #12
	csel	x8, x9, x10, gt
Lloh57:
	adrp	x9, _SECURITY_STATIC_WEP@GOTPAGE
Lloh58:
	ldr	x9, [x9, _SECURITY_STATIC_WEP@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh59:
	ldr	x9, [x9]
	str	x9, [x22, #208]
	b	LBB0_57
LBB0_56:
Lloh60:
	adrp	x8, _SECURITY_PLAINTEXT@GOTPAGE
Lloh61:
	ldr	x8, [x8, _SECURITY_PLAINTEXT@GOTPAGEOFF]
Lloh62:
	ldr	x8, [x8]
	str	x8, [x22, #208]
Lloh63:
	adrp	x8, _WPA_CIPHER_NONE@GOTPAGE
Lloh64:
	ldr	x8, [x8, _WPA_CIPHER_NONE@GOTPAGEOFF]
Lloh65:
	ldr	w8, [x8]
LBB0_57:
	str	w8, [x22, #24]
	stp	w8, w8, [x22, #40]
LBB0_58:
	ldp	x9, x8, [x19]
	ldr	x10, [x8, #24]
	cmp	x9, x10
	ccmp	x9, #0, #4, lt
	csel	x9, x9, x10, ne
	str	x9, [x22, #88]
	ldr	w9, [x22, #4]
	cbnz	w9, LBB0_60
; %bb.59:
	ldr	w9, [x8, #32]
	str	w9, [x22, #4]
LBB0_60:
	ldr	w9, [x8, #56]
	str	w9, [x22, #108]
	ldr	x0, [x8, #48]
	cbz	x0, LBB0_62
; %bb.61:
	bl	_wpabuf_dup
	str	w0, [x22, #104]
	ldr	x8, [x19, #8]
LBB0_62:
	mov	w0, #0
	ldur	d0, [x8, #36]
	str	d0, [x22, #96]
LBB0_63:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid pbss value(%d) for AP mode"

l_.str.1:                               ; @.str.1
	.asciz	"No SSID configured for AP mode"

	.comm	_DEFAULT_KEY_MGMT,8,3           ; @DEFAULT_KEY_MGMT
	.comm	_WPA_KEY_MGMT_PSK,8,3           ; @WPA_KEY_MGMT_PSK
	.comm	_PMK_LEN,4,2                    ; @PMK_LEN
	.comm	_NUM_WEP_KEYS,4,2               ; @NUM_WEP_KEYS
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"P2P: Enable Interworking with access_network_type: %d"

l_.str.3:                               ; @.str.3
	.asciz	"P2P: Venue group: %d  Venue type: %d"

	.comm	_SECURITY_WPA,8,3               ; @SECURITY_WPA
	.comm	_SECURITY_WPA_PSK,8,3           ; @SECURITY_WPA_PSK
	.comm	_WPA_CIPHER_NONE,8,3            ; @WPA_CIPHER_NONE
	.comm	_SECURITY_IEEE_802_1X,8,3       ; @SECURITY_IEEE_802_1X
	.comm	_WPA_CIPHER_WEP104,4,2          ; @WPA_CIPHER_WEP104
	.comm	_WPA_CIPHER_WEP40,4,2           ; @WPA_CIPHER_WEP40
	.comm	_SECURITY_STATIC_WEP,8,3        ; @SECURITY_STATIC_WEP
	.comm	_SECURITY_PLAINTEXT,8,3         ; @SECURITY_PLAINTEXT
	.comm	_WPA_CIPHER_CCMP,4,2            ; @WPA_CIPHER_CCMP
	.comm	_WPA_CIPHER_GCMP,4,2            ; @WPA_CIPHER_GCMP
	.comm	_WPA_CIPHER_CCMP_256,4,2        ; @WPA_CIPHER_CCMP_256
	.comm	_WPA_CIPHER_GCMP_256,4,2        ; @WPA_CIPHER_GCMP_256
	.comm	_DEFAULT_FRAGMENT_SIZE,8,3      ; @DEFAULT_FRAGMENT_SIZE
	.comm	_HOSTAPD_MODE_IEEE80211G,8,3    ; @HOSTAPD_MODE_IEEE80211G
	.comm	_MGMT_FRAME_PROTECTION_DEFAULT,8,3 ; @MGMT_FRAME_PROTECTION_DEFAULT
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.comm	_WPAS_MODE_P2P_GO,8,3           ; @WPAS_MODE_P2P_GO
	.comm	_WPAS_MODE_P2P_GROUP_FORMATION,8,3 ; @WPAS_MODE_P2P_GROUP_FORMATION
	.comm	_WPS_DEV_TYPE_LEN,4,2           ; @WPS_DEV_TYPE_LEN
	.comm	_WPS_UUID_LEN,4,2               ; @WPS_UUID_LEN
	.no_dead_strip	_wpa_supplicant_conf_ap
.subsections_via_symbols
