	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_build_sel_reg_dev_password_id
_wps_build_sel_reg_dev_password_id:     ## @wps_build_sel_reg_dev_password_id
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, 8(%rdi)
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r14
	cmpq	$0, 16(%rdi)
	jne	LBB0_2
## %bb.3:
	movq	_DEV_PW_DEFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_DEV_PW_PUSHBUTTON@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	jns	LBB0_6
## %bb.5:
	movl	(%rax), %ebx
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_wpa_printf
	movq	_ATTR_DEV_PASSWORD_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_be16
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_wpabuf_put_be16
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_wpabuf_put_be16
LBB0_7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEV_PW_PUSHBUTTON,4,2          ## @DEV_PW_PUSHBUTTON
	.comm	_DEV_PW_DEFAULT,4,2             ## @DEV_PW_DEFAULT
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS:  * Device Password ID (%d)"

	.comm	_ATTR_DEV_PASSWORD_ID,4,2       ## @ATTR_DEV_PASSWORD_ID
	.no_dead_strip	_wps_build_sel_reg_dev_password_id
.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_dev_password_id
_wps_build_sel_reg_dev_password_id:     ; @wps_build_sel_reg_dev_password_id
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x8, _DEV_PW_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEV_PW_DEFAULT@GOTPAGEOFF]
	ldr	x9, [x0, #16]
Lloh2:
	adrp	x10, _DEV_PW_PUSHBUTTON@GOTPAGE
Lloh3:
	ldr	x10, [x10, _DEV_PW_PUSHBUTTON@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x8, x10, eq
	ldr	w8, [x8]
	ldr	x9, [x0]
	cmp	x9, #0
	csel	w20, w8, w9, lt
Lloh4:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_wpa_printf
Lloh9:
	adrp	x8, _ATTR_DEV_PASSWORD_ID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATTR_DEV_PASSWORD_ID@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_be16
	mov	x0, x19
	mov	w1, #2
	bl	_wpabuf_put_be16
	mov	x0, x19
	mov	x1, x20
	bl	_wpabuf_put_be16
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DEV_PW_PUSHBUTTON,4,2          ; @DEV_PW_PUSHBUTTON
	.comm	_DEV_PW_DEFAULT,4,2             ; @DEV_PW_DEFAULT
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS:  * Device Password ID (%d)"

	.comm	_ATTR_DEV_PASSWORD_ID,4,2       ; @ATTR_DEV_PASSWORD_ID
	.no_dead_strip	_wps_build_sel_reg_dev_password_id
.subsections_via_symbols
