	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2d_X509_AUX                   ## -- Begin function i2d_X509_AUX
	.p2align	4, 0x90
_i2d_X509_AUX:                          ## @i2d_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	cmpq	$0, (%rbx)
	je	LBB0_2
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2d_x509_aux_internal          ## TAILCALL
LBB0_2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_i2d_x509_aux_internal
	movl	%eax, %r15d
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	movl	%r15d, %edi
	callq	_OPENSSL_malloc
	movq	%rax, -32(%rbp)
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_i2d_x509_aux_internal
	movl	%eax, %r15d
	testl	%eax, %eax
	jg	LBB0_7
## %bb.6:
	movq	(%rbx), %rdi
	callq	_OPENSSL_free
	movq	$0, (%rbx)
	jmp	LBB0_7
LBB0_4:
	movq	_X509_F_I2D_X509_AUX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_X509err
	movl	$-1, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X509_F_I2D_X509_AUX,4,2        ## @X509_F_I2D_X509_AUX
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2d_X509_AUX                   ; -- Begin function i2d_X509_AUX
	.p2align	2
_i2d_X509_AUX:                          ; @i2d_X509_AUX
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	cbz	x1, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_3
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	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
	add	sp, sp, #64
	b	_i2d_x509_aux_internal
LBB0_3:
	mov	x0, x20
	mov	x1, #0
	bl	_i2d_x509_aux_internal
	mov	x21, x0
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x0, x21
	bl	_OPENSSL_malloc
	str	x0, [sp, #8]
	str	x0, [x19]
	cbz	x0, LBB0_7
; %bb.5:
	add	x1, sp, #8
	mov	x0, x20
	bl	_i2d_x509_aux_internal
	mov	x21, x0
	cmp	w0, #0
	b.gt	LBB0_8
; %bb.6:
	ldr	x0, [x19]
	bl	_OPENSSL_free
	str	xzr, [x19]
	b	LBB0_8
LBB0_7:
Lloh0:
	adrp	x8, _X509_F_I2D_X509_AUX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X509_F_I2D_X509_AUX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_X509err
	mov	w21, #-1
LBB0_8:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_X509_F_I2D_X509_AUX,4,2        ; @X509_F_I2D_X509_AUX
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
.subsections_via_symbols
