	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_cert_cb
_set_cert_cb:                           ## @set_cert_cb
	.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	%rsi, %rbx
	movq	%rdi, %r13
	callq	_SSL_certs_clear
	testq	%rbx, %rbx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r14
	movq	32(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_1
## %bb.2:
	movl	$1, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_SSL_build_cert_chain
	testl	%eax, %eax
	je	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %r14
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	testq	%r14, %r14
	je	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	28(%r14), %esi
	movl	24(%r14), %edx
	movq	8(%r14), %rcx
	movq	%r13, %rdi
	callq	_SSL_check_chain
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_bio_err@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	callq	_BIO_printf
	movl	(%r12), %r15d
	movq	%r12, %rbx
	movl	28(%r14), %edi
	callq	_X509_get_subject_name
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_get_nameopt
	movl	%r15d, %edi
	movl	%r12d, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_X509_NAME_print_ex
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_BIO_puts
	movq	%r13, %rdi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_print_chain_flags
	movq	_CERT_PKEY_VALID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	28(%r14), %esi
	movq	%r13, %rdi
	callq	_SSL_use_certificate
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	24(%r14), %esi
	movq	%r13, %rdi
	callq	_SSL_use_PrivateKey
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 16(%r14)
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_SSL_set1_chain
	jmp	LBB0_10
LBB0_11:
	movl	$1, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bio_err,4,2                    ## @bio_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Checking cert chain %d:\nSubject: "

L_.str.1:                               ## @.str.1
	.asciz	"\n"

	.comm	_CERT_PKEY_VALID,4,2            ## @CERT_PKEY_VALID
	.no_dead_strip	_set_cert_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_cert_cb
_set_cert_cb:                           ; @set_cert_cb
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	bl	_SSL_certs_clear
	cbz	x20, LBB0_11
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x26, x20
	ldr	x20, [x20, #32]
	cbnz	x20, LBB0_1
; %bb.2:
	mov	w20, #1
Lloh0:
	adrp	x27, _bio_err@GOTPAGE
Lloh1:
	ldr	x27, [x27, _bio_err@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
Lloh4:
	adrp	x28, _CERT_PKEY_VALID@GOTPAGE
Lloh5:
	ldr	x28, [x28, _CERT_PKEY_VALID@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str.1@PAGE
Lloh7:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_SSL_build_cert_chain
	cbz	w0, LBB0_12
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x26, [x26]
	add	w20, w20, #1
	cbz	x26, LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w2, w1, [x26, #24]
	ldr	x3, [x26, #8]
	mov	x0, x19
	bl	_SSL_check_chain
	mov	x23, x0
	ldr	w0, [x27]
	mov	x1, x21
	mov	x2, x20
	bl	_BIO_printf
	ldr	w24, [x27]
	ldr	w0, [x26, #28]
	bl	_X509_get_subject_name
	mov	x25, x0
	bl	_get_nameopt
	mov	x3, x0
	mov	x0, x24
	mov	x1, x25
	mov	w2, #0
	bl	_X509_NAME_print_ex
	ldr	w0, [x27]
	mov	x1, x22
	bl	_BIO_puts
	mov	x0, x19
	mov	x1, x23
	bl	_print_chain_flags
	ldr	w8, [x28]
	tst	w8, w23
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x26, #28]
	mov	x0, x19
	bl	_SSL_use_certificate
	cbz	w0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x26, #24]
	mov	x0, x19
	bl	_SSL_use_PrivateKey
	cbz	w0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26, #16]
	cbnz	x8, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x26, #8]
	cbz	x1, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_SSL_set1_chain
	b	LBB0_4
LBB0_11:
	mov	w0, #1
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_bio_err,4,2                    ; @bio_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Checking cert chain %d:\nSubject: "

l_.str.1:                               ; @.str.1
	.asciz	"\n"

	.comm	_CERT_PKEY_VALID,4,2            ; @CERT_PKEY_VALID
	.no_dead_strip	_set_cert_cb
.subsections_via_symbols
