	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_build_ap_settings
_wps_build_ap_settings:                 ## @wps_build_ap_settings
	.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	%rsi, %r12
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	cmpq	$0, 8(%rax)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	(%rbx), %rax
	movq	8(%rax), %rsi
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_wpabuf_put_data
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_wps_build_cred_ssid
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_wps_build_cred_mac_addr
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_wps_build_cred_auth_type
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_wps_build_cred_encr_type
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_wps_build_cred_network_key
	xorl	%r15d, %r15d
	testq	%rax, %rax
	setne	%r15b
LBB0_7:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put
	movl	(%r13), %edi
	subq	%r14, %rax
	shrq	$2, %rax
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_wpa_hexdump_key
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS:  * AP Settings (pre-configured)"

L_.str.1:                               ## @.str.1
	.asciz	"WPS:  * AP Settings based on current configuration"

L_.str.2:                               ## @.str.2
	.asciz	"WPS: Plaintext AP Settings"

	.no_dead_strip	_wps_build_ap_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_build_ap_settings
_wps_build_ap_settings:                 ; @wps_build_ap_settings
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
Lloh0:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x21]
	ldr	x1, [x8, #8]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_wpabuf_put_data
	mov	w21, #0
	b	LBB0_8
LBB0_2:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	mov	w1, #0
	bl	_wpabuf_put
	mov	x20, x0
	mov	x0, x21
	mov	x1, x19
	bl	_wps_build_cred_ssid
	cbnz	x0, LBB0_6
; %bb.3:
	mov	x0, x21
	mov	x1, x19
	bl	_wps_build_cred_mac_addr
	cbnz	x0, LBB0_6
; %bb.4:
	mov	x0, x21
	mov	x1, x19
	bl	_wps_build_cred_auth_type
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	mov	x1, x19
	bl	_wps_build_cred_encr_type
	cbz	x0, LBB0_9
LBB0_6:
	mov	w21, #1
LBB0_7:
	mov	x0, x19
	mov	w1, #0
	bl	_wpabuf_put
	ldr	w8, [x22]
	sub	x9, x0, x20
	lsr	x3, x9, #2
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x8
	mov	x2, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_wpa_hexdump_key
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x21
	mov	x1, x19
	bl	_wps_build_cred_network_key
	cmp	x0, #0
	cset	w21, ne
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS:  * AP Settings (pre-configured)"

l_.str.1:                               ; @.str.1
	.asciz	"WPS:  * AP Settings based on current configuration"

l_.str.2:                               ; @.str.2
	.asciz	"WPS: Plaintext AP Settings"

	.no_dead_strip	_wps_build_ap_settings
.subsections_via_symbols
