	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d2i_X509_AUX                   ## -- Begin function d2i_X509_AUX
	.p2align	4, 0x90
_d2i_X509_AUX:                          ## @d2i_X509_AUX
	.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	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rsi), %rax
	movq	%rax, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movb	$1, %r13b
	cmpq	$0, (%r15)
	jne	LBB0_3
LBB0_2:
	xorl	%r13d, %r13d
LBB0_3:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_d2i_X509
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	%rax, %rbx
	movq	-48(%rbp), %rax
	movq	(%r14), %rdx
	subq	%rax, %rdx
	addq	%r12, %rdx
	testq	%rdx, %rdx
	jle	LBB0_7
## %bb.5:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_d2i_X509_CERT_AUX
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movq	-48(%rbp), %rax
LBB0_7:
	movq	%rax, (%r14)
	jmp	LBB0_12
LBB0_8:
	testb	%r13b, %r13b
	jne	LBB0_11
## %bb.9:
	movq	%rbx, %rdi
	callq	_X509_free
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:
	movq	$0, (%r15)
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d2i_X509_AUX                   ; -- Begin function d2i_X509_AUX
	.p2align	2
_d2i_X509_AUX:                          ; @d2i_X509_AUX
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1]
	str	x8, [sp, #8]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.2:
	mov	w23, #1
	b	LBB0_4
LBB0_3:
	mov	w23, #0
LBB0_4:
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x22
	bl	_d2i_X509
	mov	x21, x0
	cbz	x0, LBB0_9
; %bb.5:
	ldr	x8, [sp, #8]
	ldr	x9, [x19]
	sub	x9, x9, x8
	add	x2, x9, x22
	cmp	x2, #1
	b.lt	LBB0_8
; %bb.6:
	add	x1, sp, #8
	mov	x0, x21
	bl	_d2i_X509_CERT_AUX
	cbz	w0, LBB0_10
; %bb.7:
	ldr	x8, [sp, #8]
LBB0_8:
	str	x8, [x19]
LBB0_9:
	mov	x0, x21
	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
LBB0_10:
	tbz	w23, #0, LBB0_12
; %bb.11:
	mov	x21, #0
	b	LBB0_9
LBB0_12:
	mov	x0, x21
	bl	_X509_free
	mov	x21, #0
	cbz	x20, LBB0_9
; %bb.13:
	str	xzr, [x20]
	b	LBB0_9
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
