	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hs20_spp_get_certificate
_hs20_spp_get_certificate:              ## @hs20_spp_get_certificate
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_MSG_INFO@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_osu_get_certificate
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
LBB0_2:
	testl	%ebx, %ebx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_build_spp_post_dev_data
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movl	4(%r14), %edi
	movq	%rax, %rsi
	callq	_soap_send_receive
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, %rbx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_debug_dump_node
	leaq	L_.str.5(%rip), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_hs20_spp_validate
	testq	%rax, %rax
	jns	LBB0_7
## %bb.5:
	movl	(%r12), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_wpa_printf
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_xml_node_free
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Client certificate enrollment"

L_.str.1:                               ## @.str.1
	.asciz	"EST simpleEnroll failed"

L_.str.2:                               ## @.str.2
	.asciz	"Certificate enrollment completed"

L_.str.3:                               ## @.str.3
	.asciz	"Certificate enrollment failed"

L_.str.4:                               ## @.str.4
	.asciz	"Received response to certificate enrollment completed"

L_.str.5:                               ## @.str.5
	.asciz	"sppPostDevDataResponse"

L_.str.6:                               ## @.str.6
	.asciz	"SPP validation failed"

	.no_dead_strip	_hs20_spp_get_certificate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hs20_spp_get_certificate
_hs20_spp_get_certificate:              ; @hs20_spp_get_certificate
	.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, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MSG_INFO@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	mov	x1, x21
	bl	_osu_get_certificate
	mov	x21, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
	ldr	w0, [x22]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_2:
Lloh6:
	adrp	x8, l_.str.3@PAGE
Lloh7:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh8:
	adrp	x9, l_.str.2@PAGE
Lloh9:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w21, #0
	csel	x3, x9, x8, eq
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x20
	bl	_build_spp_post_dev_data
	cbz	x0, LBB0_6
; %bb.3:
	mov	x1, x0
	ldr	w0, [x19, #4]
	bl	_soap_send_receive
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.4:
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_debug_dump_node
Lloh12:
	adrp	x2, l_.str.5@PAGE
Lloh13:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_hs20_spp_validate
	tbz	x0, #63, LBB0_7
; %bb.5:
	ldr	w0, [x22]
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x19]
	mov	x1, x20
	bl	_xml_node_free
LBB0_6:
	mov	x20, #0
LBB0_7:
	mov	x0, x20
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Client certificate enrollment"

l_.str.1:                               ; @.str.1
	.asciz	"EST simpleEnroll failed"

l_.str.2:                               ; @.str.2
	.asciz	"Certificate enrollment completed"

l_.str.3:                               ; @.str.3
	.asciz	"Certificate enrollment failed"

l_.str.4:                               ; @.str.4
	.asciz	"Received response to certificate enrollment completed"

l_.str.5:                               ; @.str.5
	.asciz	"sppPostDevDataResponse"

l_.str.6:                               ; @.str.6
	.asciz	"SPP validation failed"

	.no_dead_strip	_hs20_spp_get_certificate
.subsections_via_symbols
