	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_registrar_selected_registrar_changed ## -- Begin function wps_registrar_selected_registrar_changed
	.p2align	4, 0x90
_wps_registrar_selected_registrar_changed: ## @wps_registrar_selected_registrar_changed
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	24(%rbx), %rax
	movq	32(%rbx), %rdi
	movq	%rax, 48(%rbx)
	movq	$-1, (%rbx)
	movl	40(%rbx), %esi
	movq	_WPS_MAX_AUTHORIZED_MACS@GOTPCREL(%rip), %rax
	movq	_ETH_ALEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	imull	(%rax), %edx
	callq	_os_memcpy
	movl	(%r15), %edi
	movq	32(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	$8, %ecx
	callq	_wpa_hexdump
	cmpq	$0, 24(%rbx)
	je	LBB0_7
## %bb.1:
	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	16(%rbx), %rax
	notl	%edx
	andl	(%rax), %edx
	movl	%edx, -28(%rbp)
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.2:
	movq	_DEV_PW_PUSHBUTTON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rbx)
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdi
	callq	_wps_set_pushbutton
	movq	8(%rbx), %rdx
	jmp	LBB0_6
LBB0_7:
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_8
LBB0_3:
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:
	movl	%r14d, (%rbx)
LBB0_5:
	xorl	%edx, %edx
LBB0_6:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	-28(%rbp), %eax
	movl	%eax, 4(%rbx)
LBB0_8:
	movq	%rbx, %rdi
	callq	_wps_registrar_sel_reg_union
	movq	%rbx, %rdi
	callq	_wps_set_ie
	movq	%rbx, %rdi
	callq	_wps_cb_set_sel_reg
	addq	$8, %rsp
	popq	%rbx
	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: Selected registrar information changed"

	.comm	_WPS_MAX_AUTHORIZED_MACS,4,2    ## @WPS_MAX_AUTHORIZED_MACS
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
L_.str.1:                               ## @.str.1
	.asciz	"WPS: Authorized MACs union (start with own)"

	.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	_DEV_PW_PUSHBUTTON,4,2          ## @DEV_PW_PUSHBUTTON
L_.str.2:                               ## @.str.2
	.asciz	"WPS: Internal Registrar selected (pbc=%d)"

L_.str.3:                               ## @.str.3
	.asciz	"WPS: Internal Registrar not selected"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_registrar_selected_registrar_changed ; -- Begin function wps_registrar_selected_registrar_changed
	.p2align	2
_wps_registrar_selected_registrar_changed: ; @wps_registrar_selected_registrar_changed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldp	x8, x0, [x19, #24]
	str	x8, [x19, #48]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x19]
Lloh4:
	adrp	x8, _WPS_MAX_AUTHORIZED_MACS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WPS_MAX_AUTHORIZED_MACS@GOTPAGEOFF]
	ldr	w1, [x19, #40]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _ETH_ALEN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ETH_ALEN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	mul	w2, w9, w8
	bl	_os_memcpy
	ldr	w0, [x21]
	ldr	x2, [x19, #32]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w3, #8
	bl	_wpa_hexdump
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
; %bb.1:
Lloh12:
	adrp	x9, _WPS_CONFIG_PUSHBUTTON@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WPS_CONFIG_PUSHBUTTON@GOTPAGEOFF]
	ldp	x10, x8, [x19, #8]
	ldr	w11, [x8]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x12, _WPS_CONFIG_VIRT_PUSHBUTTON@GOTPAGE
Lloh16:
	ldr	x12, [x12, _WPS_CONFIG_VIRT_PUSHBUTTON@GOTPAGEOFF]
Lloh17:
	adrp	x13, _WPS_CONFIG_PHY_PUSHBUTTON@GOTPAGE
Lloh18:
	ldr	x13, [x13, _WPS_CONFIG_PHY_PUSHBUTTON@GOTPAGEOFF]
Lloh19:
	ldr	w12, [x12]
Lloh20:
	ldr	w13, [x13]
	orr	w12, w13, w12
	orr	w9, w9, w12
	bic	w9, w11, w9
	str	w9, [sp, #12]
	cbz	x10, LBB0_4
; %bb.2:
Lloh21:
	adrp	x9, _DEV_PW_PUSHBUTTON@GOTPAGE
Lloh22:
	ldr	x9, [x9, _DEV_PW_PUSHBUTTON@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	str	w9, [x19]
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_wps_set_pushbutton
	ldr	x8, [x19, #8]
	b	LBB0_6
LBB0_3:
	ldr	w0, [x21]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	b	LBB0_7
LBB0_4:
	mov	x8, #0
	cbz	w20, LBB0_6
; %bb.5:
	str	w20, [x19]
LBB0_6:
	ldr	w0, [x21]
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	ldr	w8, [sp, #12]
	str	w8, [x19, #4]
LBB0_7:
	mov	x0, x19
	bl	_wps_registrar_sel_reg_union
	mov	x0, x19
	bl	_wps_set_ie
	mov	x0, x19
	bl	_wps_cb_set_sel_reg
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: Selected registrar information changed"

	.comm	_WPS_MAX_AUTHORIZED_MACS,4,2    ; @WPS_MAX_AUTHORIZED_MACS
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
l_.str.1:                               ; @.str.1
	.asciz	"WPS: Authorized MACs union (start with own)"

	.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	_DEV_PW_PUSHBUTTON,4,2          ; @DEV_PW_PUSHBUTTON
l_.str.2:                               ; @.str.2
	.asciz	"WPS: Internal Registrar selected (pbc=%d)"

l_.str.3:                               ; @.str.3
	.asciz	"WPS: Internal Registrar not selected"

.subsections_via_symbols
