	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_build_sel_reg_config_methods
_wps_build_sel_reg_config_methods:      ## @wps_build_sel_reg_config_methods
	.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
	cmpl	$0, 24(%rdi)
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_WPS_CONFIG_PUSHBUTTON@GOTPCREL(%rip), %rax
	movq	_WPS_CONFIG_VIRT_PUSHBUTTON@GOTPCREL(%rip), %rcx
	movq	_WPS_CONFIG_PHY_PUSHBUTTON@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	orl	(%rax), %edx
	movq	8(%rdi), %rax
	notl	%edx
	andl	(%rax), %edx
	movl	%edx, -20(%rbp)
	cmpq	$0, 16(%rdi)
	je	LBB0_3
## %bb.2:
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdi
	callq	_wps_set_pushbutton
LBB0_3:
	movl	(%rbx), %edx
	testl	%edx, %edx
	js	LBB0_4
## %bb.5:
	movl	%edx, -20(%rbp)
	jmp	LBB0_6
LBB0_4:
	movl	-20(%rbp), %edx
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	_ATTR_SELECTED_REGISTRAR_CONFIG_METHODS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_be16
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_wpabuf_put_be16
	movl	-20(%rbp), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_be16
LBB0_7:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPS_CONFIG_PUSHBUTTON,4,2      ## @WPS_CONFIG_PUSHBUTTON
	.comm	_WPS_CONFIG_VIRT_PUSHBUTTON,4,2 ## @WPS_CONFIG_VIRT_PUSHBUTTON
	.comm	_WPS_CONFIG_PHY_PUSHBUTTON,4,2  ## @WPS_CONFIG_PHY_PUSHBUTTON
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS:  * Selected Registrar Config Methods (%x)"

	.comm	_ATTR_SELECTED_REGISTRAR_CONFIG_METHODS,4,2 ## @ATTR_SELECTED_REGISTRAR_CONFIG_METHODS
	.no_dead_strip	_wps_build_sel_reg_config_methods
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_build_sel_reg_config_methods
_wps_build_sel_reg_config_methods:      ; @wps_build_sel_reg_config_methods
	.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	w8, [x0, #24]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x9, _WPS_CONFIG_PUSHBUTTON@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPS_CONFIG_PUSHBUTTON@GOTPAGEOFF]
	ldp	x8, x10, [x0, #8]
	ldr	w11, [x8]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x12, _WPS_CONFIG_VIRT_PUSHBUTTON@GOTPAGE
Lloh4:
	ldr	x12, [x12, _WPS_CONFIG_VIRT_PUSHBUTTON@GOTPAGEOFF]
Lloh5:
	adrp	x13, _WPS_CONFIG_PHY_PUSHBUTTON@GOTPAGE
Lloh6:
	ldr	x13, [x13, _WPS_CONFIG_PHY_PUSHBUTTON@GOTPAGEOFF]
Lloh7:
	ldr	w12, [x12]
Lloh8:
	ldr	w13, [x13]
	orr	w12, w13, w12
	orr	w9, w9, w12
	bic	w9, w11, w9
	str	w9, [sp, #12]
	cbz	x10, LBB0_3
; %bb.2:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_wps_set_pushbutton
LBB0_3:
	ldr	w2, [x20]
	tbnz	w2, #31, LBB0_5
; %bb.4:
	str	w2, [sp, #12]
	b	LBB0_6
LBB0_5:
	ldr	w2, [sp, #12]
LBB0_6:
Lloh9:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh14:
	adrp	x8, _ATTR_SELECTED_REGISTRAR_CONFIG_METHODS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ATTR_SELECTED_REGISTRAR_CONFIG_METHODS@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_be16
	mov	x0, x19
	mov	w1, #2
	bl	_wpabuf_put_be16
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_wpabuf_put_be16
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WPS_CONFIG_PUSHBUTTON,4,2      ; @WPS_CONFIG_PUSHBUTTON
	.comm	_WPS_CONFIG_VIRT_PUSHBUTTON,4,2 ; @WPS_CONFIG_VIRT_PUSHBUTTON
	.comm	_WPS_CONFIG_PHY_PUSHBUTTON,4,2  ; @WPS_CONFIG_PHY_PUSHBUTTON
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS:  * Selected Registrar Config Methods (%x)"

	.comm	_ATTR_SELECTED_REGISTRAR_CONFIG_METHODS,4,2 ; @ATTR_SELECTED_REGISTRAR_CONFIG_METHODS
	.no_dead_strip	_wps_build_sel_reg_config_methods
.subsections_via_symbols
