	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tlsv1_set_ca_cert              ## -- Begin function tlsv1_set_ca_cert
	.p2align	4, 0x90
_tlsv1_set_ca_cert:                     ## @tlsv1_set_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	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$7, %edx
	callq	_os_strncmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_os_strncmp
	testq	%rax, %rax
	je	LBB0_8
LBB0_3:
	movq	%rbx, %rax
	orq	%r13, %rax
	xorl	%ecx, %ecx
	orq	%r15, %rax
	setne	%cl
	movl	%ecx, 12(%r14)
	addq	$8, %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_tlsv1_set_cert_chain
	movl	$-1, %ebx
	testq	%rax, %rax
	js	LBB0_18
## %bb.4:
	testq	%r15, %r15
	je	LBB0_11
## %bb.5:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_10
LBB0_6:
	leaq	7(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$14, %edx
	callq	_os_strncmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_17
LBB0_8:
	movl	$1, 4(%r14)
	movl	$0, 12(%r14)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_18
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_12:
	leaq	21(%rbx), %r15
	movq	%r15, %rdi
	callq	_os_strlen
	cmpl	$64, %eax
	jne	LBB0_15
## %bb.13:
	movl	16(%r14), %esi
	movq	%r15, %rdi
	movl	$32, %edx
	callq	_hexstr2bin
	testq	%rax, %rax
	js	LBB0_16
## %bb.14:
	movl	$1, (%r14)
	movl	$0, 12(%r14)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_9
LBB0_15:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_17
LBB0_16:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_17:
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hash://"

L_.str.1:                               ## @.str.1
	.asciz	"server/sha256/"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"TLSv1: Unsupported ca_cert hash value '%s'"

L_.str.3:                               ## @.str.3
	.asciz	"TLSv1: Unexpected SHA256 hash length in ca_cert '%s'"

L_.str.4:                               ## @.str.4
	.asciz	"TLSv1: Invalid SHA256 hash value in ca_cert '%s'"

L_.str.5:                               ## @.str.5
	.asciz	"TLSv1: Checking only server certificate match"

L_.str.6:                               ## @.str.6
	.asciz	"probe://"

L_.str.7:                               ## @.str.7
	.asciz	"TLSv1: Only probe server certificate"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.8:                               ## @.str.8
	.asciz	"TLSv1: Use of CA certificate directory not yet supported"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tlsv1_set_ca_cert              ; -- Begin function tlsv1_set_ca_cert
	.p2align	2
_tlsv1_set_ca_cert:                     ; @tlsv1_set_ca_cert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	cbz	x1, LBB0_3
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #7
	bl	_os_strncmp
	cbz	x0, LBB0_6
; %bb.2:
Lloh2:
	adrp	x1, l_.str.6@PAGE
Lloh3:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	w2, #8
	bl	_os_strncmp
	cbz	x0, LBB0_8
LBB0_3:
	orr	x8, x19, x23
	orr	x8, x8, x21
	cmp	x8, #0
	cset	w8, ne
	str	w8, [x20, #12]
	add	x0, x20, #8
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	bl	_tlsv1_set_cert_chain
	tbnz	x0, #63, LBB0_17
; %bb.4:
	cbz	x21, LBB0_10
; %bb.5:
Lloh4:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.8@PAGE
Lloh8:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_16
LBB0_6:
	add	x0, x19, #7
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #14
	bl	_os_strncmp
	cbz	x0, LBB0_11
; %bb.7:
Lloh11:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_8:
	mov	w8, #1
	str	w8, [x20, #4]
	str	wzr, [x20, #12]
Lloh16:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.7@PAGE
Lloh20:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_9:
	bl	_wpa_printf
LBB0_10:
	mov	w0, #0
	b	LBB0_18
LBB0_11:
	add	x21, x19, #21
	mov	x0, x21
	bl	_os_strlen
	cmp	w0, #64
	b.ne	LBB0_14
; %bb.12:
	ldr	w1, [x20, #16]
	mov	x0, x21
	mov	w2, #32
	bl	_hexstr2bin
	tbnz	x0, #63, LBB0_15
; %bb.13:
	mov	w8, #1
	str	w8, [x20]
	str	wzr, [x20, #12]
Lloh21:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_9
LBB0_14:
Lloh26:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh31:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_16:
	bl	_wpa_printf
LBB0_17:
	mov	w0, #-1
LBB0_18:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hash://"

l_.str.1:                               ; @.str.1
	.asciz	"server/sha256/"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"TLSv1: Unsupported ca_cert hash value '%s'"

l_.str.3:                               ; @.str.3
	.asciz	"TLSv1: Unexpected SHA256 hash length in ca_cert '%s'"

l_.str.4:                               ; @.str.4
	.asciz	"TLSv1: Invalid SHA256 hash value in ca_cert '%s'"

l_.str.5:                               ; @.str.5
	.asciz	"TLSv1: Checking only server certificate match"

l_.str.6:                               ; @.str.6
	.asciz	"probe://"

l_.str.7:                               ; @.str.7
	.asciz	"TLSv1: Only probe server certificate"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.8:                               ; @.str.8
	.asciz	"TLSv1: Use of CA certificate directory not yet supported"

.subsections_via_symbols
