	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_p2p_update_config         ## -- Begin function wpas_p2p_update_config
	.p2align	4, 0x90
_wpas_p2p_update_config:                ## @wpas_p2p_update_config
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_57
## %bb.1:
	movq	%rdi, %r12
	movq	_WPA_DRIVER_FLAGS_P2P_CAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_57
## %bb.2:
	movq	8(%r12), %rax
	movl	(%rax), %ecx
	movq	_CFG_CHANGED_DEVICE_NAME@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_4
## %bb.3:
	movl	108(%rax), %esi
	movq	%r14, %rdi
	callq	_p2p_set_dev_name
	movq	8(%r12), %rax
	movl	(%rax), %ecx
LBB0_4:
	movq	_CFG_CHANGED_DEVICE_TYPE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_6
## %bb.5:
	movl	104(%rax), %esi
	movq	%r14, %rdi
	callq	_p2p_set_pri_dev_type
LBB0_6:
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	8(%r12), %rcx
	movq	_CFG_CHANGED_CONFIG_METHODS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_9
## %bb.8:
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_p2p_set_config_methods
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_11
LBB0_9:
	movq	8(%r12), %rcx
	movq	_CFG_CHANGED_UUID@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_11
## %bb.10:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_p2p_set_uuid
LBB0_11:
	movq	8(%r12), %rax
	movl	(%rax), %ecx
	movq	_CFG_CHANGED_WPS_STRING@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_13
## %bb.12:
	movl	100(%rax), %esi
	movq	%r14, %rdi
	callq	_p2p_set_manufacturer
	movq	8(%r12), %rax
	movl	96(%rax), %esi
	movq	%r14, %rdi
	callq	_p2p_set_model_name
	movq	8(%r12), %rax
	movl	92(%rax), %esi
	movq	%r14, %rdi
	callq	_p2p_set_model_number
	movq	8(%r12), %rax
	movl	88(%rax), %esi
	movq	%r14, %rdi
	callq	_p2p_set_serial_number
	movq	8(%r12), %rax
	movl	(%rax), %ecx
LBB0_13:
	movq	_CFG_CHANGED_SEC_DEVICE_TYPE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_15
## %bb.14:
	movq	80(%rax), %rsi
	movl	72(%rax), %edx
	movq	%r14, %rdi
	callq	_p2p_set_sec_dev_types
	movq	8(%r12), %rax
	movl	(%rax), %ecx
LBB0_15:
	movq	_CFG_CHANGED_VENDOR_EXTENSION@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_21
## %bb.16:
	movq	%r14, %rdi
	callq	_p2p_remove_wps_vendor_extensions
	movq	_MAX_WPS_VENDOR_EXT@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_21
## %bb.17:
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_21
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rcx
	movq	64(%rcx), %rcx
	movq	(%rcx,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%r14, %rdi
	callq	_p2p_add_wps_vendor_extension
	movl	(%r15), %eax
	jmp	LBB0_20
LBB0_21:
	movq	8(%r12), %rax
	movl	(%rax), %ecx
	movq	_CFG_CHANGED_COUNTRY@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_25
## %bb.22:
	movq	8(%rax), %rsi
	movb	(%rsi), %dl
	testb	%dl, %dl
	je	LBB0_25
## %bb.23:
	movb	1(%rsi), %bl
	testb	%bl, %bl
	je	LBB0_25
## %bb.24:
	movb	%dl, -35(%rbp)
	movb	%bl, -34(%rbp)
	movb	$4, -33(%rbp)
	leaq	-35(%rbp), %rsi
	movq	%r14, %rdi
	callq	_p2p_set_country
	movq	8(%r12), %rax
	movl	(%rax), %ecx
LBB0_25:
	movq	_CFG_CHANGED_P2P_SSID_POSTFIX@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_30
## %bb.26:
	movq	56(%rax), %r15
	testq	%r15, %r15
	je	LBB0_27
## %bb.28:
	movq	%r15, %rdi
	callq	_os_strlen
	movl	%eax, %edx
	jmp	LBB0_29
LBB0_27:
	xorl	%edx, %edx
LBB0_29:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_p2p_set_ssid_postfix
	movq	8(%r12), %rax
	movl	(%rax), %ecx
LBB0_30:
	movq	_CFG_CHANGED_P2P_INTRA_BSS@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_32
## %bb.31:
	movl	48(%rax), %esi
	movq	%r14, %rdi
	callq	_p2p_set_intra_bss_dist
	movq	8(%r12), %rax
	movl	(%rax), %ecx
LBB0_32:
	movq	_CFG_CHANGED_P2P_LISTEN_CHANNEL@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_41
## %bb.33:
	movl	16(%rax), %esi
	testl	%esi, %esi
	je	LBB0_35
## %bb.34:
	movl	20(%rax), %edx
	movl	$1, %ecx
	testl	%edx, %edx
	jne	LBB0_38
LBB0_35:
	leaq	-44(%rbp), %rdi
	movl	$4, %esi
	callq	_os_get_random
	xorl	%ecx, %ecx
	movl	$81, %esi
	testq	%rax, %rax
	js	LBB0_36
## %bb.37:
	movl	-44(%rbp), %eax
	movl	$2863311531, %edx               ## imm = 0xAAAAAAAB
	imulq	%rax, %rdx
	shrq	$33, %rdx
	leal	(%rdx,%rdx,2), %edx
	subl	%edx, %eax
	leal	(%rax,%rax,4), %edx
	incl	%edx
	jmp	LBB0_38
LBB0_36:
	movl	$1, %edx
LBB0_38:
	movq	%r14, %rdi
	callq	_p2p_set_listen_channel
	testl	%eax, %eax
	je	LBB0_40
## %bb.39:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_40:
	movq	8(%r12), %rax
	movl	(%rax), %ecx
LBB0_41:
	movq	_CFG_CHANGED_P2P_OPER_CHANNEL@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_50
## %bb.42:
	movl	24(%rax), %esi
	testl	%esi, %esi
	je	LBB0_44
## %bb.43:
	movl	28(%rax), %edx
	movl	$1, %ecx
	testl	%edx, %edx
	jne	LBB0_47
LBB0_44:
	leaq	-40(%rbp), %rdi
	movl	$4, %esi
	callq	_os_get_random
	xorl	%ecx, %ecx
	movl	$81, %esi
	testq	%rax, %rax
	js	LBB0_45
## %bb.46:
	movl	-40(%rbp), %eax
	movl	$2863311531, %edx               ## imm = 0xAAAAAAAB
	imulq	%rax, %rdx
	shrq	$33, %rdx
	leal	(%rdx,%rdx,2), %edx
	subl	%edx, %eax
	leal	(%rax,%rax,4), %edx
	incl	%edx
	jmp	LBB0_47
LBB0_45:
	movl	$1, %edx
LBB0_47:
	movq	%r14, %rdi
	callq	_p2p_set_oper_channel
	testl	%eax, %eax
	je	LBB0_49
## %bb.48:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_49:
	movq	8(%r12), %rax
	movl	(%rax), %ecx
LBB0_50:
	movq	_CFG_CHANGED_P2P_PREF_CHAN@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_55
## %bb.51:
	movl	40(%rax), %edx
	movl	44(%rax), %esi
	movq	%r14, %rdi
	callq	_p2p_set_pref_chan
	testq	%rax, %rax
	jns	LBB0_53
## %bb.52:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_53:
	movq	8(%r12), %rsi
	addq	$36, %rsi
	movq	%r14, %rdi
	callq	_p2p_set_no_go_freq
	testq	%rax, %rax
	jns	LBB0_55
## %bb.54:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_55:
	movq	8(%r12), %rax
	movq	_CFG_CHANGED_P2P_PASSPHRASE_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_57
## %bb.56:
	movl	32(%rax), %esi
	movq	%r14, %rdi
	callq	_p2p_set_passphrase_len
LBB0_57:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_DRIVER_FLAGS_P2P_CAPABLE,4,2 ## @WPA_DRIVER_FLAGS_P2P_CAPABLE
	.comm	_CFG_CHANGED_DEVICE_NAME,4,2    ## @CFG_CHANGED_DEVICE_NAME
	.comm	_CFG_CHANGED_DEVICE_TYPE,4,2    ## @CFG_CHANGED_DEVICE_TYPE
	.comm	_CFG_CHANGED_CONFIG_METHODS,4,2 ## @CFG_CHANGED_CONFIG_METHODS
	.comm	_CFG_CHANGED_UUID,4,2           ## @CFG_CHANGED_UUID
	.comm	_CFG_CHANGED_WPS_STRING,4,2     ## @CFG_CHANGED_WPS_STRING
	.comm	_CFG_CHANGED_SEC_DEVICE_TYPE,4,2 ## @CFG_CHANGED_SEC_DEVICE_TYPE
	.comm	_CFG_CHANGED_VENDOR_EXTENSION,4,2 ## @CFG_CHANGED_VENDOR_EXTENSION
	.comm	_MAX_WPS_VENDOR_EXT,4,2         ## @MAX_WPS_VENDOR_EXT
	.comm	_CFG_CHANGED_COUNTRY,4,2        ## @CFG_CHANGED_COUNTRY
	.comm	_CFG_CHANGED_P2P_SSID_POSTFIX,4,2 ## @CFG_CHANGED_P2P_SSID_POSTFIX
	.comm	_CFG_CHANGED_P2P_INTRA_BSS,4,2  ## @CFG_CHANGED_P2P_INTRA_BSS
	.comm	_CFG_CHANGED_P2P_LISTEN_CHANNEL,4,2 ## @CFG_CHANGED_P2P_LISTEN_CHANNEL
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P2P: Own listen channel update failed: %d"

	.comm	_CFG_CHANGED_P2P_OPER_CHANNEL,4,2 ## @CFG_CHANGED_P2P_OPER_CHANNEL
L_.str.1:                               ## @.str.1
	.asciz	"P2P: Own oper channel update failed: %d"

	.comm	_CFG_CHANGED_P2P_PREF_CHAN,4,2  ## @CFG_CHANGED_P2P_PREF_CHAN
L_.str.2:                               ## @.str.2
	.asciz	"P2P: Preferred channel list update failed"

L_.str.3:                               ## @.str.3
	.asciz	"P2P: No GO channel list update failed"

	.comm	_CFG_CHANGED_P2P_PASSPHRASE_LEN,4,2 ## @CFG_CHANGED_P2P_PASSPHRASE_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_p2p_update_config         ; -- Begin function wpas_p2p_update_config
	.p2align	2
_wpas_p2p_update_config:                ; @wpas_p2p_update_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	ldr	x8, [x0, #24]
	ldr	x19, [x8]
	cbz	x19, LBB0_61
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _WPA_DRIVER_FLAGS_P2P_CAPABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPA_DRIVER_FLAGS_P2P_CAPABLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_61
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
Lloh3:
	adrp	x10, _CFG_CHANGED_DEVICE_NAME@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CFG_CHANGED_DEVICE_NAME@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
	ldr	w1, [x8, #108]
	mov	x0, x19
	bl	_p2p_set_dev_name
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
LBB0_4:
Lloh6:
	adrp	x10, _CFG_CHANGED_DEVICE_TYPE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CFG_CHANGED_DEVICE_TYPE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.5:
	ldr	w1, [x8, #104]
	mov	x0, x19
	bl	_p2p_set_pri_dev_type
LBB0_6:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_11
; %bb.7:
	ldr	x9, [x20, #8]
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _CFG_CHANGED_CONFIG_METHODS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CFG_CHANGED_CONFIG_METHODS@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.8:
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_p2p_set_config_methods
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_11
LBB0_9:
	ldr	x9, [x20, #8]
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _CFG_CHANGED_UUID@GOTPAGE
Lloh13:
	ldr	x10, [x10, _CFG_CHANGED_UUID@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_p2p_set_uuid
LBB0_11:
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
Lloh15:
	adrp	x10, _CFG_CHANGED_WPS_STRING@GOTPAGE
Lloh16:
	ldr	x10, [x10, _CFG_CHANGED_WPS_STRING@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_13
; %bb.12:
	ldr	w1, [x8, #100]
	mov	x0, x19
	bl	_p2p_set_manufacturer
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #96]
	mov	x0, x19
	bl	_p2p_set_model_name
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #92]
	mov	x0, x19
	bl	_p2p_set_model_number
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #88]
	mov	x0, x19
	bl	_p2p_set_serial_number
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
LBB0_13:
Lloh18:
	adrp	x10, _CFG_CHANGED_SEC_DEVICE_TYPE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _CFG_CHANGED_SEC_DEVICE_TYPE@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_15
; %bb.14:
	ldr	x1, [x8, #80]
	ldr	w2, [x8, #72]
	mov	x0, x19
	bl	_p2p_set_sec_dev_types
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
LBB0_15:
Lloh21:
	adrp	x8, _CFG_CHANGED_VENDOR_EXTENSION@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CFG_CHANGED_VENDOR_EXTENSION@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_21
; %bb.16:
	mov	x0, x19
	bl	_p2p_remove_wps_vendor_extensions
Lloh24:
	adrp	x21, _MAX_WPS_VENDOR_EXT@GOTPAGE
Lloh25:
	ldr	x21, [x21, _MAX_WPS_VENDOR_EXT@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.17:
	mov	x22, #0
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_21
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	ldr	x9, [x9, #64]
	ldr	x1, [x9, x22, lsl #3]
	cbz	x1, LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x19
	bl	_p2p_add_wps_vendor_extension
	ldr	w8, [x21]
	b	LBB0_18
LBB0_21:
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
Lloh26:
	adrp	x10, _CFG_CHANGED_COUNTRY@GOTPAGE
Lloh27:
	ldr	x10, [x10, _CFG_CHANGED_COUNTRY@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_25
; %bb.22:
	ldr	x11, [x8, #8]
	ldrb	w10, [x11]
	cbz	w10, LBB0_25
; %bb.23:
	ldrb	w11, [x11, #1]
	cbz	w11, LBB0_25
; %bb.24:
	strb	w10, [sp, #29]
	strb	w11, [sp, #30]
	mov	w8, #4
	strb	w8, [sp, #31]
	add	x1, sp, #29
	mov	x0, x19
	bl	_p2p_set_country
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
LBB0_25:
Lloh29:
	adrp	x10, _CFG_CHANGED_P2P_SSID_POSTFIX@GOTPAGE
Lloh30:
	ldr	x10, [x10, _CFG_CHANGED_P2P_SSID_POSTFIX@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_30
; %bb.26:
	ldr	x21, [x8, #56]
	cbz	x21, LBB0_28
; %bb.27:
	mov	x0, x21
	bl	_os_strlen
	mov	x2, x0
	b	LBB0_29
LBB0_28:
	mov	w2, #0
LBB0_29:
	mov	x0, x19
	mov	x1, x21
	bl	_p2p_set_ssid_postfix
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
LBB0_30:
Lloh32:
	adrp	x10, _CFG_CHANGED_P2P_INTRA_BSS@GOTPAGE
Lloh33:
	ldr	x10, [x10, _CFG_CHANGED_P2P_INTRA_BSS@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_32
; %bb.31:
	ldr	w1, [x8, #48]
	mov	x0, x19
	bl	_p2p_set_intra_bss_dist
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
LBB0_32:
Lloh35:
	adrp	x10, _CFG_CHANGED_P2P_LISTEN_CHANNEL@GOTPAGE
Lloh36:
	ldr	x10, [x10, _CFG_CHANGED_P2P_LISTEN_CHANNEL@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_43
; %bb.33:
	ldr	w1, [x8, #16]
	cbz	w1, LBB0_36
; %bb.34:
	ldr	w2, [x8, #20]
	cbz	w2, LBB0_36
; %bb.35:
	mov	w3, #1
	b	LBB0_40
LBB0_36:
	add	x0, sp, #24
	mov	w1, #4
	bl	_os_get_random
	mov	w3, #0
	tbnz	x0, #63, LBB0_38
; %bb.37:
	ldr	w8, [sp, #24]
	mov	w9, #43691
	movk	w9, #43690, lsl #16
	mul	x9, x8, x9
	lsr	x9, x9, #33
	add	w9, w9, w9, lsl #1
	sub	w8, w8, w9
	add	w8, w8, w8, lsl #2
	add	w2, w8, #1
	b	LBB0_39
LBB0_38:
	mov	w2, #1
LBB0_39:
	mov	w1, #81
LBB0_40:
	mov	x0, x19
	bl	_p2p_set_listen_channel
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_42
; %bb.41:
Lloh38:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	str	x0, [sp]
Lloh41:
	adrp	x1, l_.str@PAGE
Lloh42:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_wpa_printf
LBB0_42:
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
LBB0_43:
Lloh43:
	adrp	x10, _CFG_CHANGED_P2P_OPER_CHANNEL@GOTPAGE
Lloh44:
	ldr	x10, [x10, _CFG_CHANGED_P2P_OPER_CHANNEL@GOTPAGEOFF]
Lloh45:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_54
; %bb.44:
	ldr	w1, [x8, #24]
	cbz	w1, LBB0_47
; %bb.45:
	ldr	w2, [x8, #28]
	cbz	w2, LBB0_47
; %bb.46:
	mov	w3, #1
	b	LBB0_51
LBB0_47:
	add	x0, sp, #20
	mov	w1, #4
	bl	_os_get_random
	mov	w3, #0
	tbnz	x0, #63, LBB0_49
; %bb.48:
	ldr	w8, [sp, #20]
	mov	w9, #43691
	movk	w9, #43690, lsl #16
	mul	x9, x8, x9
	lsr	x9, x9, #33
	add	w9, w9, w9, lsl #1
	sub	w8, w8, w9
	add	w8, w8, w8, lsl #2
	add	w2, w8, #1
	b	LBB0_50
LBB0_49:
	mov	w2, #1
LBB0_50:
	mov	w1, #81
LBB0_51:
	mov	x0, x19
	bl	_p2p_set_oper_channel
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_53
; %bb.52:
Lloh46:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh47:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	str	x0, [sp]
Lloh49:
	adrp	x1, l_.str.1@PAGE
Lloh50:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_wpa_printf
LBB0_53:
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
LBB0_54:
Lloh51:
	adrp	x10, _CFG_CHANGED_P2P_PREF_CHAN@GOTPAGE
Lloh52:
	ldr	x10, [x10, _CFG_CHANGED_P2P_PREF_CHAN@GOTPAGEOFF]
Lloh53:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_59
; %bb.55:
	ldp	w2, w1, [x8, #40]
	mov	x0, x19
	bl	_p2p_set_pref_chan
	tbz	x0, #63, LBB0_57
; %bb.56:
Lloh54:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh55:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
Lloh57:
	adrp	x1, l_.str.2@PAGE
Lloh58:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
LBB0_57:
	ldr	x8, [x20, #8]
	add	x1, x8, #36
	mov	x0, x19
	bl	_p2p_set_no_go_freq
	tbz	x0, #63, LBB0_59
; %bb.58:
Lloh59:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh60:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
Lloh62:
	adrp	x1, l_.str.3@PAGE
Lloh63:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
LBB0_59:
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
Lloh64:
	adrp	x10, _CFG_CHANGED_P2P_PASSPHRASE_LEN@GOTPAGE
Lloh65:
	ldr	x10, [x10, _CFG_CHANGED_P2P_PASSPHRASE_LEN@GOTPAGEOFF]
Lloh66:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_61
; %bb.60:
	ldr	w1, [x8, #32]
	mov	x0, x19
	bl	_p2p_set_passphrase_len
LBB0_61:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_DRIVER_FLAGS_P2P_CAPABLE,4,2 ; @WPA_DRIVER_FLAGS_P2P_CAPABLE
	.comm	_CFG_CHANGED_DEVICE_NAME,4,2    ; @CFG_CHANGED_DEVICE_NAME
	.comm	_CFG_CHANGED_DEVICE_TYPE,4,2    ; @CFG_CHANGED_DEVICE_TYPE
	.comm	_CFG_CHANGED_CONFIG_METHODS,4,2 ; @CFG_CHANGED_CONFIG_METHODS
	.comm	_CFG_CHANGED_UUID,4,2           ; @CFG_CHANGED_UUID
	.comm	_CFG_CHANGED_WPS_STRING,4,2     ; @CFG_CHANGED_WPS_STRING
	.comm	_CFG_CHANGED_SEC_DEVICE_TYPE,4,2 ; @CFG_CHANGED_SEC_DEVICE_TYPE
	.comm	_CFG_CHANGED_VENDOR_EXTENSION,4,2 ; @CFG_CHANGED_VENDOR_EXTENSION
	.comm	_MAX_WPS_VENDOR_EXT,4,2         ; @MAX_WPS_VENDOR_EXT
	.comm	_CFG_CHANGED_COUNTRY,4,2        ; @CFG_CHANGED_COUNTRY
	.comm	_CFG_CHANGED_P2P_SSID_POSTFIX,4,2 ; @CFG_CHANGED_P2P_SSID_POSTFIX
	.comm	_CFG_CHANGED_P2P_INTRA_BSS,4,2  ; @CFG_CHANGED_P2P_INTRA_BSS
	.comm	_CFG_CHANGED_P2P_LISTEN_CHANNEL,4,2 ; @CFG_CHANGED_P2P_LISTEN_CHANNEL
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P2P: Own listen channel update failed: %d"

	.comm	_CFG_CHANGED_P2P_OPER_CHANNEL,4,2 ; @CFG_CHANGED_P2P_OPER_CHANNEL
l_.str.1:                               ; @.str.1
	.asciz	"P2P: Own oper channel update failed: %d"

	.comm	_CFG_CHANGED_P2P_PREF_CHAN,4,2  ; @CFG_CHANGED_P2P_PREF_CHAN
l_.str.2:                               ; @.str.2
	.asciz	"P2P: Preferred channel list update failed"

l_.str.3:                               ; @.str.3
	.asciz	"P2P: No GO channel list update failed"

	.comm	_CFG_CHANGED_P2P_PASSPHRASE_LEN,4,2 ; @CFG_CHANGED_P2P_PASSPHRASE_LEN
.subsections_via_symbols
