	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_connection_ca_cert
_tls_connection_ca_cert:                ## @tls_connection_ca_cert
	.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	%r9, %r12
	movq	%r8, %r15
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	16(%rsi), %edi
	movq	_SSL_VERIFY_PEER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_tls_verify_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_wolfSSL_set_verify
	movl	$1, (%rbx)
	testq	%r13, %r13
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	$8, %edx
	callq	_os_strncmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	$7, %edx
	callq	_os_strncmp
	testq	%rax, %rax
	je	LBB0_14
LBB0_3:
	testq	%r14, %r14
	je	LBB0_7
## %bb.4:
	movq	_SSL_FILETYPE_ASN1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_wolfSSL_CTX_load_verify_buffer
	movq	_SSL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_19
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_wpa_printf
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, (%rbx)
	jmp	LBB0_19
LBB0_7:
	movq	%r13, %rax
	orq	%r12, %rax
	je	LBB0_15
## %bb.8:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_wolfSSL_X509_STORE_new
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_wolfSSL_CTX_set_cert_store
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_wolfSSL_CTX_load_verify_locations
	movq	_SSL_SUCCESS@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	je	LBB0_19
## %bb.10:
	movq	_MSG_INFO@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_wpa_printf
	testq	%r13, %r13
	je	LBB0_18
## %bb.11:
	movq	_SSL_FILETYPE_ASN1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_wolfSSL_CTX_der_load_verify_locations
	cmpq	(%rbx), %rax
	je	LBB0_19
## %bb.12:
	movl	(%r14), %edi
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_17
LBB0_13:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_17
LBB0_14:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_17
LBB0_15:
	movl	$0, (%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_19
LBB0_16:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
LBB0_17:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_18:
	movl	$-1, %r15d
LBB0_19:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_VERIFY_PEER,4,2            ## @SSL_VERIFY_PEER
	.comm	_tls_verify_cb,4,2              ## @tls_verify_cb
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"probe://"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"wolfSSL: Probe for server certificate chain"

L_.str.2:                               ## @.str.2
	.asciz	"hash://"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.3:                               ## @.str.3
	.asciz	"No SHA256 included in the build - cannot validate server certificate hash"

	.comm	_SSL_FILETYPE_ASN1,4,2          ## @SSL_FILETYPE_ASN1
	.comm	_SSL_SUCCESS,8,3                ## @SSL_SUCCESS
L_.str.4:                               ## @.str.4
	.asciz	"SSL: failed to load CA blob"

L_.str.5:                               ## @.str.5
	.asciz	"SSL: use CA cert blob OK"

L_.str.6:                               ## @.str.6
	.asciz	"SSL: failed to create certificate store"

L_.str.7:                               ## @.str.7
	.asciz	"SSL: failed to load ca_cert as PEM"

L_.str.8:                               ## @.str.8
	.asciz	"SSL: failed to load ca_cert as DER"

	.no_dead_strip	_tls_connection_ca_cert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function tls_connection_ca_cert
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_tls_connection_ca_cert:                ; @tls_connection_ca_cert
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x5
	mov	x23, x4
	mov	x24, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x1, #16]
Lloh0:
	adrp	x8, _SSL_VERIFY_PEER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_VERIFY_PEER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _tls_verify_cb@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tls_verify_cb@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_wolfSSL_set_verify
	mov	w8, #1
	str	w8, [x22]
	cbz	x20, LBB0_3
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #8
	bl	_os_strncmp
	cbz	x0, LBB0_6
; %bb.2:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	w2, #7
	bl	_os_strncmp
	cbz	x0, LBB0_14
LBB0_3:
	cbz	x24, LBB0_7
; %bb.4:
Lloh10:
	adrp	x8, _SSL_FILETYPE_ASN1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SSL_FILETYPE_ASN1@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	bl	_wolfSSL_CTX_load_verify_buffer
Lloh13:
	adrp	x8, _SSL_SUCCESS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SSL_SUCCESS@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.5:
Lloh16:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	mov	w0, #0
	b	LBB0_20
LBB0_6:
Lloh21:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	w0, #0
Lloh26:
	adrp	x8, lCPI0_0@PAGE
Lloh27:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x22]
	b	LBB0_20
LBB0_7:
	orr	x8, x20, x21
	cbz	x8, LBB0_15
; %bb.8:
	bl	_wolfSSL_X509_STORE_new
	cbz	x0, LBB0_16
; %bb.9:
	mov	x1, x0
	mov	x0, x19
	bl	_wolfSSL_CTX_set_cert_store
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_wolfSSL_CTX_load_verify_locations
Lloh28:
	adrp	x21, _SSL_SUCCESS@GOTPAGE
Lloh29:
	ldr	x21, [x21, _SSL_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_12
; %bb.10:
Lloh30:
	adrp	x22, _MSG_INFO@GOTPAGE
Lloh31:
	ldr	x22, [x22, _MSG_INFO@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh32:
	adrp	x1, l_.str.7@PAGE
Lloh33:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_wpa_printf
	cbz	x20, LBB0_19
; %bb.11:
Lloh34:
	adrp	x8, _SSL_FILETYPE_ASN1@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SSL_FILETYPE_ASN1@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_wolfSSL_CTX_der_load_verify_locations
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_17
LBB0_12:
	mov	w0, #0
	b	LBB0_20
LBB0_13:
Lloh37:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x1, l_.str.4@PAGE
Lloh41:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_18
LBB0_14:
Lloh42:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh43:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
Lloh45:
	adrp	x1, l_.str.3@PAGE
Lloh46:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_18
LBB0_15:
	mov	w0, #0
	str	wzr, [x22]
	b	LBB0_20
LBB0_16:
Lloh47:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh48:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
Lloh50:
	adrp	x1, l_.str.6@PAGE
Lloh51:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_18
LBB0_17:
	ldr	w0, [x22]
Lloh52:
	adrp	x1, l_.str.8@PAGE
Lloh53:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_18:
	bl	_wpa_printf
LBB0_19:
	mov	w0, #-1
LBB0_20:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdr	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_VERIFY_PEER,4,2            ; @SSL_VERIFY_PEER
	.comm	_tls_verify_cb,4,2              ; @tls_verify_cb
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"probe://"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"wolfSSL: Probe for server certificate chain"

l_.str.2:                               ; @.str.2
	.asciz	"hash://"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.3:                               ; @.str.3
	.asciz	"No SHA256 included in the build - cannot validate server certificate hash"

	.comm	_SSL_FILETYPE_ASN1,4,2          ; @SSL_FILETYPE_ASN1
	.comm	_SSL_SUCCESS,8,3                ; @SSL_SUCCESS
l_.str.4:                               ; @.str.4
	.asciz	"SSL: failed to load CA blob"

l_.str.5:                               ; @.str.5
	.asciz	"SSL: use CA cert blob OK"

l_.str.6:                               ; @.str.6
	.asciz	"SSL: failed to create certificate store"

l_.str.7:                               ; @.str.7
	.asciz	"SSL: failed to load ca_cert as PEM"

l_.str.8:                               ; @.str.8
	.asciz	"SSL: failed to load ca_cert as DER"

	.no_dead_strip	_tls_connection_ca_cert
.subsections_via_symbols
