	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_wsc_new_ap_settings
_eap_wsc_new_ap_settings:               ## @eap_wsc_new_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, %r15
	movq	%rdi, %r14
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_os_memset
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_os_strstr
	testq	%rax, %rax
	je	LBB0_34
## %bb.1:
	movq	%rax, %r13
	addq	$9, %r13
	movq	%r13, %rdi
	movl	$32, %esi
	callq	_os_strchr
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	subq	%r13, %rbx
	cmpq	$8, %rbx
	jbe	LBB0_5
	jmp	LBB0_7
LBB0_2:
	movq	%r13, %rdi
	callq	_os_strlen
	movq	%rax, %rbx
	cmpq	$8, %rbx
	ja	LBB0_7
LBB0_5:
	movl	%ebx, %eax
	andl	$1, %eax
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movl	28(%r14), %esi
	shrq	%rbx
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_hexstr2bin
	testq	%rax, %rax
	je	LBB0_9
LBB0_7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	callq	_wpa_printf
	movl	$-1, %r12d
LBB0_34:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rbx, (%r14)
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_os_strstr
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %rbx
	addq	$9, %rbx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_os_strncmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	movl	$6, %edx
	callq	_os_strncmp
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	movl	$7, %edx
	callq	_os_strncmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.35:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_8
LBB0_10:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_12:
	movq	_WPS_AUTH_OPEN@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_14:
	movq	_WPS_AUTH_WPAPSK@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	movq	_WPS_AUTH_WPA2PSK@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	callq	_os_strstr
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	movq	%rax, %rbx
	addq	$9, %rbx
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_os_strncmp
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	leaq	L_.str.11(%rip), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_os_strncmp
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:
	leaq	L_.str.12(%rip), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_os_strncmp
	testq	%rax, %rax
	je	LBB0_24
## %bb.36:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.13(%rip), %rsi
	jmp	LBB0_8
LBB0_18:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_8
LBB0_20:
	movq	_WPS_ENCR_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_22:
	movq	_WPS_ENCR_TKIP@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_24:
	movq	_WPS_ENCR_AES@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	leaq	L_.str.14(%rip), %rsi
	movq	%r15, %rdi
	callq	_os_strstr
	testq	%rax, %rax
	je	LBB0_34
## %bb.26:
	movq	%rax, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_os_strchr
	testq	%rax, %rax
	je	LBB0_27
## %bb.28:
	movq	%rax, %rbx
	subq	%r15, %rbx
	jmp	LBB0_29
LBB0_27:
	movq	%r15, %rdi
	callq	_os_strlen
	movq	%rax, %rbx
LBB0_29:
	cmpq	$8, %rbx
	ja	LBB0_32
## %bb.30:
	movl	%ebx, %eax
	andl	$1, %eax
	testq	%rax, %rax
	jne	LBB0_32
## %bb.31:
	movl	16(%r14), %esi
	shrq	%rbx
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_hexstr2bin
	testq	%rax, %rax
	je	LBB0_33
LBB0_32:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.15(%rip), %rsi
	jmp	LBB0_8
LBB0_33:
	movq	%rbx, 8(%r14)
	movl	$1, %r12d
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"new_ssid="

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"EAP-WSC: Invalid new_ssid"

L_.str.2:                               ## @.str.2
	.asciz	"new_auth="

L_.str.3:                               ## @.str.3
	.asciz	"EAP-WSC: Missing new_auth"

L_.str.4:                               ## @.str.4
	.asciz	"OPEN"

	.comm	_WPS_AUTH_OPEN,4,2              ## @WPS_AUTH_OPEN
L_.str.5:                               ## @.str.5
	.asciz	"WPAPSK"

	.comm	_WPS_AUTH_WPAPSK,4,2            ## @WPS_AUTH_WPAPSK
L_.str.6:                               ## @.str.6
	.asciz	"WPA2PSK"

	.comm	_WPS_AUTH_WPA2PSK,4,2           ## @WPS_AUTH_WPA2PSK
L_.str.7:                               ## @.str.7
	.asciz	"EAP-WSC: Unknown new_auth"

L_.str.8:                               ## @.str.8
	.asciz	"new_encr="

L_.str.9:                               ## @.str.9
	.asciz	"EAP-WSC: Missing new_encr"

L_.str.10:                              ## @.str.10
	.asciz	"NONE"

	.comm	_WPS_ENCR_NONE,4,2              ## @WPS_ENCR_NONE
L_.str.11:                              ## @.str.11
	.asciz	"TKIP"

	.comm	_WPS_ENCR_TKIP,4,2              ## @WPS_ENCR_TKIP
L_.str.12:                              ## @.str.12
	.asciz	"CCMP"

	.comm	_WPS_ENCR_AES,4,2               ## @WPS_ENCR_AES
L_.str.13:                              ## @.str.13
	.asciz	"EAP-WSC: Unknown new_encr"

L_.str.14:                              ## @.str.14
	.asciz	"new_key="

L_.str.15:                              ## @.str.15
	.asciz	"EAP-WSC: Invalid new_key"

	.comm	_WPS_ENCR_WEP,4,2               ## @WPS_ENCR_WEP
	.no_dead_strip	_eap_wsc_new_ap_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_wsc_new_ap_settings
_eap_wsc_new_ap_settings:               ; @eap_wsc_new_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	x20, x1
	mov	x19, x0
	mov	w1, #0
	mov	w2, #32
	bl	_os_memset
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_os_strstr
	cbz	x0, LBB0_8
; %bb.1:
	add	x21, x0, #9
	mov	x0, x21
	mov	w1, #32
	bl	_os_strchr
	cbz	x0, LBB0_3
; %bb.2:
	sub	x0, x0, x21
	b	LBB0_4
LBB0_3:
	mov	x0, x21
	bl	_os_strlen
LBB0_4:
	and	x8, x0, #0x1
	cmp	x0, #8
	ccmp	x8, #0, #0, ls
	b.ne	LBB0_6
; %bb.5:
	ldr	w1, [x19, #28]
	lsr	x22, x0, #1
	mov	x0, x21
	mov	x2, x22
	bl	_hexstr2bin
	cbz	x0, LBB0_9
LBB0_6:
Lloh2:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	bl	_wpa_printf
	mov	w0, #-1
LBB0_8:
	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:
	str	x22, [x19]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_os_strstr
	cbz	x0, LBB0_14
; %bb.10:
	add	x21, x0, #9
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	w2, #4
	bl	_os_strncmp
	cbz	x0, LBB0_15
; %bb.11:
Lloh11:
	adrp	x1, l_.str.5@PAGE
Lloh12:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	mov	w2, #6
	bl	_os_strncmp
	cbz	x0, LBB0_16
; %bb.12:
Lloh13:
	adrp	x1, l_.str.6@PAGE
Lloh14:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	mov	w2, #7
	bl	_os_strncmp
	cbz	x0, LBB0_17
; %bb.13:
Lloh15:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.7@PAGE
Lloh19:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_7
LBB0_14:
Lloh20:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_15:
Lloh25:
	adrp	x8, _WPS_AUTH_OPEN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WPS_AUTH_OPEN@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
Lloh27:
	adrp	x8, _WPS_AUTH_WPAPSK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _WPS_AUTH_WPAPSK@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh29:
	adrp	x8, _WPS_AUTH_WPA2PSK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _WPS_AUTH_WPA2PSK@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh31:
	adrp	x1, l_.str.8@PAGE
Lloh32:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_os_strstr
	cbz	x0, LBB0_23
; %bb.19:
	add	x21, x0, #9
Lloh33:
	adrp	x1, l_.str.10@PAGE
Lloh34:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x21
	mov	w2, #4
	bl	_os_strncmp
	cbz	x0, LBB0_24
; %bb.20:
Lloh35:
	adrp	x1, l_.str.11@PAGE
Lloh36:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x21
	mov	w2, #4
	bl	_os_strncmp
	cbz	x0, LBB0_25
; %bb.21:
Lloh37:
	adrp	x1, l_.str.12@PAGE
Lloh38:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x21
	mov	w2, #4
	bl	_os_strncmp
	cbz	x0, LBB0_26
; %bb.22:
Lloh39:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
Lloh42:
	adrp	x1, l_.str.13@PAGE
Lloh43:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_7
LBB0_23:
Lloh44:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
Lloh47:
	adrp	x1, l_.str.9@PAGE
Lloh48:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_7
LBB0_24:
Lloh49:
	adrp	x8, _WPS_ENCR_NONE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _WPS_ENCR_NONE@GOTPAGEOFF]
	b	LBB0_27
LBB0_25:
Lloh51:
	adrp	x8, _WPS_ENCR_TKIP@GOTPAGE
Lloh52:
	ldr	x8, [x8, _WPS_ENCR_TKIP@GOTPAGEOFF]
	b	LBB0_27
LBB0_26:
Lloh53:
	adrp	x8, _WPS_ENCR_AES@GOTPAGE
Lloh54:
	ldr	x8, [x8, _WPS_ENCR_AES@GOTPAGEOFF]
LBB0_27:
	ldr	w8, [x8]
	str	w8, [x19, #20]
Lloh55:
	adrp	x1, l_.str.14@PAGE
Lloh56:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x20
	bl	_os_strstr
	cbz	x0, LBB0_8
; %bb.28:
	add	x20, x0, #8
	mov	x0, x20
	mov	w1, #32
	bl	_os_strchr
	cbz	x0, LBB0_30
; %bb.29:
	sub	x0, x0, x20
	b	LBB0_31
LBB0_30:
	mov	x0, x20
	bl	_os_strlen
LBB0_31:
	cmp	x0, #8
	b.hi	LBB0_34
; %bb.32:
	tbnz	w0, #0, LBB0_34
; %bb.33:
	ldr	w1, [x19, #16]
	lsr	x21, x0, #1
	mov	x0, x20
	mov	x2, x21
	bl	_hexstr2bin
	cbz	x0, LBB0_35
LBB0_34:
Lloh57:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh58:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh59:
	ldr	w0, [x8]
Lloh60:
	adrp	x1, l_.str.15@PAGE
Lloh61:
	add	x1, x1, l_.str.15@PAGEOFF
	b	LBB0_7
LBB0_35:
	str	x21, [x19, #8]
	mov	w0, #1
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"new_ssid="

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"EAP-WSC: Invalid new_ssid"

l_.str.2:                               ; @.str.2
	.asciz	"new_auth="

l_.str.3:                               ; @.str.3
	.asciz	"EAP-WSC: Missing new_auth"

l_.str.4:                               ; @.str.4
	.asciz	"OPEN"

	.comm	_WPS_AUTH_OPEN,4,2              ; @WPS_AUTH_OPEN
l_.str.5:                               ; @.str.5
	.asciz	"WPAPSK"

	.comm	_WPS_AUTH_WPAPSK,4,2            ; @WPS_AUTH_WPAPSK
l_.str.6:                               ; @.str.6
	.asciz	"WPA2PSK"

	.comm	_WPS_AUTH_WPA2PSK,4,2           ; @WPS_AUTH_WPA2PSK
l_.str.7:                               ; @.str.7
	.asciz	"EAP-WSC: Unknown new_auth"

l_.str.8:                               ; @.str.8
	.asciz	"new_encr="

l_.str.9:                               ; @.str.9
	.asciz	"EAP-WSC: Missing new_encr"

l_.str.10:                              ; @.str.10
	.asciz	"NONE"

	.comm	_WPS_ENCR_NONE,4,2              ; @WPS_ENCR_NONE
l_.str.11:                              ; @.str.11
	.asciz	"TKIP"

	.comm	_WPS_ENCR_TKIP,4,2              ; @WPS_ENCR_TKIP
l_.str.12:                              ; @.str.12
	.asciz	"CCMP"

	.comm	_WPS_ENCR_AES,4,2               ; @WPS_ENCR_AES
l_.str.13:                              ; @.str.13
	.asciz	"EAP-WSC: Unknown new_encr"

l_.str.14:                              ; @.str.14
	.asciz	"new_key="

l_.str.15:                              ; @.str.15
	.asciz	"EAP-WSC: Invalid new_key"

	.comm	_WPS_ENCR_WEP,4,2               ; @WPS_ENCR_WEP
	.no_dead_strip	_eap_wsc_new_ap_settings
.subsections_via_symbols
