	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cert_verify_callback
_cert_verify_callback:                  ## @cert_verify_callback
	.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
	subq	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ignore_cert@GOTPCREL(%rip), %rax
	movl	$1, %r13d
	cmpq	$0, (%rax)
	jne	LBB0_14
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_X509_verify_cert
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_X509_STORE_CTX_get_current_cert
	movq	%rax, %r15
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_validate_hostname
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_9
## %bb.4:
	movb	$1, %bl
	leaq	L_.str.1(%rip), %r12
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	leaq	L_.str.3(%rip), %r12
	jmp	LBB0_10
LBB0_2:
	leaq	L_.str(%rip), %r12
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str.2(%rip), %r12
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.5(%rip), %r12
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.6(%rip), %r12
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str.4(%rip), %r12
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%r15, %rdi
	callq	_X509_get_subject_name
	leaq	-304(%rbp), %rsi
	movl	%eax, %edi
	movl	$256, %edx                      ## imm = 0x100
	callq	_X509_NAME_oneline
	testb	%bl, %bl
	je	LBB0_13
## %bb.12:
	leaq	L_.str.7(%rip), %rdi
	leaq	-304(%rbp), %rdx
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str.8(%rip), %rdi
	xorl	%r13d, %r13d
	leaq	-304(%rbp), %rcx
	movq	%r12, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_printf
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%r13d, %eax
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_11
	.long	L0_0_set_7
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"X509_verify_cert failed"

	.comm	_ignore_cert,8,3                ## @ignore_cert
L_.str.1:                               ## @.str.1
	.asciz	"MatchFound"

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

L_.str.3:                               ## @.str.3
	.asciz	"NoSANPresent"

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

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

L_.str.6:                               ## @.str.6
	.asciz	"WTF!"

L_.str.7:                               ## @.str.7
	.asciz	"https server '%s' has this certificate, which looks good to me:\n%s\n"

L_.str.8:                               ## @.str.8
	.asciz	"Got '%s' for hostname '%s' and certificate:\n%s\n"

	.no_dead_strip	_cert_verify_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cert_verify_callback
_cert_verify_callback:                  ; @cert_verify_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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 w27, -56
	.cfi_offset w28, -64
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _ignore_cert@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ignore_cert@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_14
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	bl	_X509_verify_cert
	mov	x21, x0
	mov	x0, x20
	bl	_X509_STORE_CTX_get_current_cert
	mov	x20, x0
	cbz	w21, LBB0_6
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_validate_hostname
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_9
; %bb.4:
	mov	w22, #1
Lloh6:
	adrp	x21, l_.str.1@PAGE
Lloh7:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	mov	w22, #0
Lloh10:
	adrp	x21, l_.str.3@PAGE
Lloh11:
	add	x21, x21, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_6:
	mov	w22, #0
Lloh12:
	adrp	x21, l_.str@PAGE
Lloh13:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_11
LBB0_7:
	mov	w22, #0
Lloh14:
	adrp	x21, l_.str.2@PAGE
Lloh15:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_8:
	mov	w22, #0
Lloh16:
	adrp	x21, l_.str.5@PAGE
Lloh17:
	add	x21, x21, l_.str.5@PAGEOFF
	b	LBB0_11
LBB0_9:
	mov	w22, #0
Lloh18:
	adrp	x21, l_.str.6@PAGE
Lloh19:
	add	x21, x21, l_.str.6@PAGEOFF
	b	LBB0_11
LBB0_10:
	mov	w22, #0
Lloh20:
	adrp	x21, l_.str.4@PAGE
Lloh21:
	add	x21, x21, l_.str.4@PAGEOFF
LBB0_11:
	mov	x0, x20
	bl	_X509_get_subject_name
	add	x20, sp, #8
	add	x1, sp, #8
	mov	w2, #256
	bl	_X509_NAME_oneline
	cbz	w22, LBB0_13
; %bb.12:
Lloh22:
	adrp	x0, l_.str.7@PAGE
Lloh23:
	add	x0, x0, l_.str.7@PAGEOFF
	add	x2, sp, #8
	mov	x1, x19
	bl	_printf
	mov	w0, #1
	b	LBB0_14
LBB0_13:
	str	x20, [sp]
Lloh24:
	adrp	x0, l_.str.8@PAGE
Lloh25:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	x1, x21
	mov	x2, x19
	bl	_printf
	mov	w0, #0
LBB0_14:
	ldur	x8, [x29, #-56]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"X509_verify_cert failed"

	.comm	_ignore_cert,8,3                ; @ignore_cert
l_.str.1:                               ; @.str.1
	.asciz	"MatchFound"

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

l_.str.3:                               ; @.str.3
	.asciz	"NoSANPresent"

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

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

l_.str.6:                               ; @.str.6
	.asciz	"WTF!"

l_.str.7:                               ; @.str.7
	.asciz	"https server '%s' has this certificate, which looks good to me:\n%s\n"

l_.str.8:                               ; @.str.8
	.asciz	"Got '%s' for hostname '%s' and certificate:\n%s\n"

	.no_dead_strip	_cert_verify_callback
.subsections_via_symbols
