	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d2i_ASN1_UINTEGER              ## -- Begin function d2i_ASN1_UINTEGER
	.p2align	4, 0x90
_d2i_ASN1_UINTEGER:                     ## @d2i_ASN1_UINTEGER
	.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	$24, %rsp
	.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, %r15
	movq	%rdi, %r14
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ASN1_INTEGER_new
	testq	%rax, %rax
	je	LBB0_22
## %bb.3:
	movq	_V_ASN1_INTEGER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	%rax, %rbx
LBB0_4:
	movq	(%r15), %rax
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movq	%r12, %r8
	callq	_ASN1_get_object
	testb	$-128, %al
	jne	LBB0_5
## %bb.10:
	movl	-60(%rbp), %eax
	movq	_V_ASN1_INTEGER@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jne	LBB0_11
## %bb.12:
	movl	-48(%rbp), %edi
	incl	%edi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, %r12
	movl	(%r13), %eax
	movl	%eax, (%rbx)
	movq	-48(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_19
## %bb.15:
	movq	-56(%rbp), %rsi
	cmpb	$0, (%rsi)
	jne	LBB0_18
## %bb.16:
	cmpq	$1, %rdx
	je	LBB0_18
## %bb.17:
	incq	%rsi
	movq	%rsi, -56(%rbp)
	decq	%rdx
	movq	%rdx, -48(%rbp)
LBB0_18:
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	-48(%rbp), %rax
	addq	%rax, -56(%rbp)
LBB0_19:
	movq	8(%rbx), %rdi
	callq	_OPENSSL_free
	movq	%r12, 8(%rbx)
	movl	-48(%rbp), %eax
	movl	%eax, 16(%rbx)
	testq	%r14, %r14
	je	LBB0_21
## %bb.20:
	movq	%rbx, (%r14)
LBB0_21:
	movq	-56(%rbp), %rax
	movq	%rax, (%r15)
	jmp	LBB0_22
LBB0_5:
	movq	_ASN1_R_BAD_OBJECT_HEADER@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_11:
	movq	_ASN1_R_EXPECTING_AN_INTEGER@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_13:
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movq	_ASN1_F_D2I_ASN1_UINTEGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ASN1err
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	cmpq	%rbx, (%r14)
	je	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	callq	_ASN1_INTEGER_free
LBB0_9:
	xorl	%ebx, %ebx
LBB0_22:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V_ASN1_INTEGER,4,2             ## @V_ASN1_INTEGER
	.comm	_ASN1_R_BAD_OBJECT_HEADER,4,2   ## @ASN1_R_BAD_OBJECT_HEADER
	.comm	_ASN1_R_EXPECTING_AN_INTEGER,4,2 ## @ASN1_R_EXPECTING_AN_INTEGER
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_ASN1_F_D2I_ASN1_UINTEGER,4,2   ## @ASN1_F_D2I_ASN1_UINTEGER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d2i_ASN1_UINTEGER              ; -- Begin function d2i_ASN1_UINTEGER
	.p2align	2
_d2i_ASN1_UINTEGER:                     ; @d2i_ASN1_UINTEGER
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x19, [x20]
	cbnz	x19, LBB0_4
LBB0_2:
	bl	_ASN1_INTEGER_new
	mov	x19, x0
	cbz	x0, LBB0_22
; %bb.3:
Lloh0:
	adrp	x8, _V_ASN1_INTEGER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_ASN1_INTEGER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_4:
	ldr	x8, [x21]
	str	x8, [sp, #24]
	add	x0, sp, #24
	add	x1, sp, #16
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x4, x22
	bl	_ASN1_get_object
	tbnz	w0, #7, LBB0_15
; %bb.5:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x23, _V_ASN1_INTEGER@GOTPAGE
Lloh4:
	ldr	x23, [x23, _V_ASN1_INTEGER@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w8, w9
	b.ne	LBB0_16
; %bb.6:
	ldr	w8, [sp, #16]
	add	w0, w8, #1
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_17
; %bb.7:
	mov	x22, x0
	ldr	w8, [x23]
	str	w8, [x19]
	ldr	x2, [sp, #16]
	cbz	x2, LBB0_12
; %bb.8:
	ldr	x1, [sp, #24]
	ldrb	w8, [x1]
	cbnz	w8, LBB0_11
; %bb.9:
	subs	x8, x2, #1
	b.eq	LBB0_11
; %bb.10:
	add	x1, x1, #1
	stp	x8, x1, [sp, #16]
	mov	x2, x8
LBB0_11:
	mov	x0, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldp	x8, x9, [sp, #16]
	add	x8, x9, x8
	str	x8, [sp, #24]
LBB0_12:
	ldr	x0, [x19, #8]
	bl	_OPENSSL_free
	str	x22, [x19, #8]
	ldr	x8, [sp, #16]
	str	w8, [x19, #16]
	cbz	x20, LBB0_14
; %bb.13:
	str	x19, [x20]
LBB0_14:
	ldr	x8, [sp, #24]
	str	x8, [x21]
	b	LBB0_22
LBB0_15:
Lloh5:
	adrp	x8, _ASN1_R_BAD_OBJECT_HEADER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ASN1_R_BAD_OBJECT_HEADER@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
Lloh7:
	adrp	x8, _ASN1_R_EXPECTING_AN_INTEGER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ASN1_R_EXPECTING_AN_INTEGER@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh9:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
LBB0_18:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _ASN1_F_D2I_ASN1_UINTEGER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ASN1_F_D2I_ASN1_UINTEGER@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_ASN1err
	cbz	x20, LBB0_20
; %bb.19:
	ldr	x8, [x20]
	cmp	x8, x19
	b.eq	LBB0_21
LBB0_20:
	mov	x0, x19
	bl	_ASN1_INTEGER_free
LBB0_21:
	mov	x19, #0
LBB0_22:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_V_ASN1_INTEGER,4,2             ; @V_ASN1_INTEGER
	.comm	_ASN1_R_BAD_OBJECT_HEADER,4,2   ; @ASN1_R_BAD_OBJECT_HEADER
	.comm	_ASN1_R_EXPECTING_AN_INTEGER,4,2 ; @ASN1_R_EXPECTING_AN_INTEGER
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_ASN1_F_D2I_ASN1_UINTEGER,4,2   ; @ASN1_F_D2I_ASN1_UINTEGER
.subsections_via_symbols
