	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_er_http_set_sel_reg_cb
_wps_er_http_set_sel_reg_cb:            ## @wps_er_http_set_sel_reg_cb
	.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
	movl	%edx, %ebx
	movq	%rdi, %r14
	leaq	-32(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_os_memset
	leal	-130(%rbx), %eax
	cmpl	$2, %eax
	jb	LBB0_4
## %bb.1:
	cmpl	$128, %ebx
	je	LBB0_4
## %bb.2:
	cmpl	$129, %ebx
	jne	LBB0_6
## %bb.3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	_WPS_ER_SET_SEL_REG_DONE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	_WPS_ER_SET_SEL_REG_FAILED@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	16(%r14), %rax
	movq	%rax, -32(%rbp)
LBB0_6:
	movq	8(%r14), %rdi
	callq	_http_client_free
	movq	$0, 8(%r14)
	cmpq	$0, -32(%rbp)
	je	LBB0_8
## %bb.7:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_WPS_EV_ER_SET_SELECTED_REGISTRAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-32(%rbp), %rdx
	callq	*8(%rax)
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS ER: SetSelectedRegistrar OK"

	.comm	_WPS_ER_SET_SEL_REG_DONE,4,2    ## @WPS_ER_SET_SEL_REG_DONE
L_.str.1:                               ## @.str.1
	.asciz	"WPS ER: SetSelectedRegistrar failed"

	.comm	_WPS_ER_SET_SEL_REG_FAILED,4,2  ## @WPS_ER_SET_SEL_REG_FAILED
	.comm	_WPS_EV_ER_SET_SELECTED_REGISTRAR,4,2 ## @WPS_EV_ER_SET_SELECTED_REGISTRAR
	.no_dead_strip	_wps_er_http_set_sel_reg_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_er_http_set_sel_reg_cb
_wps_er_http_set_sel_reg_cb:            ; @wps_er_http_set_sel_reg_cb
	.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
	mov	x20, x2
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_os_memset
	sub	w8, w20, #130
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	w20, #128
	b.eq	LBB0_4
; %bb.2:
	cmp	w20, #129
	b.ne	LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh5:
	adrp	x8, _WPS_ER_SET_SEL_REG_DONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WPS_ER_SET_SEL_REG_DONE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
Lloh12:
	adrp	x8, _WPS_ER_SET_SEL_REG_FAILED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WPS_ER_SET_SEL_REG_FAILED@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	x8, [x19, #16]
	str	x8, [sp]
LBB0_6:
	ldr	x0, [x19, #8]
	bl	_http_client_free
	str	xzr, [x19, #8]
	ldr	x8, [sp]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _WPS_EV_ER_SET_SELECTED_REGISTRAR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WPS_EV_ER_SET_SELECTED_REGISTRAR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x2, sp
	blr	x9
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS ER: SetSelectedRegistrar OK"

	.comm	_WPS_ER_SET_SEL_REG_DONE,4,2    ; @WPS_ER_SET_SEL_REG_DONE
l_.str.1:                               ; @.str.1
	.asciz	"WPS ER: SetSelectedRegistrar failed"

	.comm	_WPS_ER_SET_SEL_REG_FAILED,4,2  ; @WPS_ER_SET_SEL_REG_FAILED
	.comm	_WPS_EV_ER_SET_SELECTED_REGISTRAR,4,2 ; @WPS_EV_ER_SET_SELECTED_REGISTRAR
	.no_dead_strip	_wps_er_http_set_sel_reg_cb
.subsections_via_symbols
