	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_ctx
_init_ctx:                              ## @init_ctx
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_os_memset
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_xml_node_init_ctx
	movq	%rax, 16(%rbx)
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_node_from_file
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r15
	movq	16(%rbx), %rdi
	leaq	L_.str.2(%rip), %rdx
	movq	%rax, %rsi
	callq	_get_node
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	16(%rbx), %rdi
	movq	%rax, %rsi
	callq	_xml_node_get_text
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_os_strdup
	movl	%eax, 24(%rbx)
	movq	16(%rbx), %rdi
	movq	%r12, %rsi
	callq	_xml_node_get_text_free
LBB0_5:
	movq	16(%rbx), %rdi
	movq	%r15, %rsi
	callq	_xml_node_free
LBB0_6:
	movq	16(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_http_init_ctx
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rdi
	movl	$2, %esi
	callq	_http_ocsp_set
	movq	8(%rbx), %rdi
	movq	_osu_cert_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_http_set_cert_cb
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_7:
	movq	16(%rbx), %rdi
	callq	_xml_node_deinit_ctx
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wlan0"

L_.str.1:                               ## @.str.1
	.asciz	"devinfo.xml"

L_.str.2:                               ## @.str.2
	.asciz	"DevId"

	.comm	_osu_cert_cb,4,2                ## @osu_cert_cb
	.no_dead_strip	_init_ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_ctx
_init_ctx:                              ; @init_ctx
	.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	x19, x0
	mov	w1, #0
	mov	w2, #32
	bl	_os_memset
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x19]
	mov	x0, x19
	mov	x1, #0
	bl	_xml_node_init_ctx
	str	x0, [x19, #16]
	cbz	x0, LBB0_9
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_node_from_file
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	ldr	x0, [x19, #16]
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_get_node
	cbz	x0, LBB0_5
; %bb.3:
	mov	x1, x0
	ldr	x0, [x19, #16]
	bl	_xml_node_get_text
	cbz	x0, LBB0_5
; %bb.4:
	mov	x21, x0
	bl	_os_strdup
	str	w0, [x19, #24]
	ldr	x0, [x19, #16]
	mov	x1, x21
	bl	_xml_node_get_text_free
LBB0_5:
	ldr	x0, [x19, #16]
	mov	x1, x20
	bl	_xml_node_free
LBB0_6:
	ldr	x1, [x19, #16]
	mov	x0, x19
	bl	_http_init_ctx
	str	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.7:
	mov	w1, #2
	bl	_http_ocsp_set
	ldr	x0, [x19, #8]
Lloh6:
	adrp	x8, _osu_cert_cb@GOTPAGE
Lloh7:
	ldr	x8, [x8, _osu_cert_cb@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_http_set_cert_cb
	mov	w0, #0
	b	LBB0_10
LBB0_8:
	ldr	x0, [x19, #16]
	bl	_xml_node_deinit_ctx
LBB0_9:
	mov	w0, #-1
LBB0_10:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wlan0"

l_.str.1:                               ; @.str.1
	.asciz	"devinfo.xml"

l_.str.2:                               ; @.str.2
	.asciz	"DevId"

	.comm	_osu_cert_cb,4,2                ; @osu_cert_cb
	.no_dead_strip	_init_ctx
.subsections_via_symbols
