	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s2i_ASN1_INTEGER               ## -- Begin function s2i_ASN1_INTEGER
	.p2align	4, 0x90
_s2i_ASN1_INTEGER:                      ## @s2i_ASN1_INTEGER
	.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
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, -32(%rbp)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movb	(%rbx), %r15b
	xorl	%eax, %eax
	cmpb	$45, %r15b
	sete	%al
	leaq	(%rbx,%rax), %r14
	cmpb	$48, (%rbx,%rax)
	jne	LBB0_8
## %bb.6:
	movb	1(%r14), %al
	orb	$32, %al
	cmpb	$120, %al
	jne	LBB0_8
## %bb.7:
	addq	$2, %r14
	leaq	-32(%rbp), %rdi
	movq	%r14, %rsi
	callq	_BN_hex2bn
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_11
LBB0_1:
	movq	_X509V3_F_S2I_ASN1_INTEGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_X509V3_R_INVALID_NULL_VALUE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_8:
	leaq	-32(%rbp), %rdi
	movq	%r14, %rsi
	callq	_BN_dec2bn
	testl	%eax, %eax
	je	LBB0_11
LBB0_10:
	cltq
	cmpb	$0, (%r14,%rax)
	je	LBB0_12
LBB0_11:
	movq	-32(%rbp), %rdi
	callq	_BN_free
	movq	_X509V3_F_S2I_ASN1_INTEGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_X509V3_R_BN_DEC2BN_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_X509V3_F_S2I_ASN1_INTEGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	callq	_X509V3err
	xorl	%ebx, %ebx
LBB0_18:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movb	$1, %r14b
	cmpb	$45, %r15b
	jne	LBB0_14
## %bb.13:
	movq	-32(%rbp), %rdi
	callq	_BN_is_zero
	testq	%rax, %rax
	setne	%r14b
LBB0_14:
	movq	-32(%rbp), %rdi
	xorl	%esi, %esi
	callq	_BN_to_ASN1_INTEGER
	movq	%rax, %rbx
	movq	-32(%rbp), %rdi
	callq	_BN_free
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.16:
	testb	%r14b, %r14b
	jne	LBB0_18
## %bb.17:
	movq	_V_ASN1_NEG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	jmp	LBB0_18
LBB0_15:
	movq	_X509V3_F_S2I_ASN1_INTEGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_X509V3_R_BN_TO_ASN1_INTEGER_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_X509V3_F_S2I_ASN1_INTEGER,4,2  ## @X509V3_F_S2I_ASN1_INTEGER
	.comm	_X509V3_R_INVALID_NULL_VALUE,4,2 ## @X509V3_R_INVALID_NULL_VALUE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_X509V3_R_BN_DEC2BN_ERROR,4,2   ## @X509V3_R_BN_DEC2BN_ERROR
	.comm	_X509V3_R_BN_TO_ASN1_INTEGER_ERROR,4,2 ## @X509V3_R_BN_TO_ASN1_INTEGER_ERROR
	.comm	_V_ASN1_NEG,4,2                 ## @V_ASN1_NEG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s2i_ASN1_INTEGER               ; -- Begin function s2i_ASN1_INTEGER
	.p2align	2
_s2i_ASN1_INTEGER:                      ; @s2i_ASN1_INTEGER
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	cbz	x1, LBB0_5
; %bb.1:
	bl	_BN_new
	str	x0, [sp, #8]
	cbz	x0, LBB0_10
; %bb.2:
	mov	x8, x19
	ldrb	w20, [x8], #1
	cmp	w20, #45
	csel	x19, x19, x8, ne
	ldrb	w8, [x19]
	cmp	w8, #48
	b.ne	LBB0_7
; %bb.3:
	ldrb	w8, [x19, #1]
	orr	w8, w8, #0x20
	cmp	w8, #120
	b.ne	LBB0_7
; %bb.4:
	add	x19, x19, #2
	add	x0, sp, #8
	mov	x1, x19
	bl	_BN_hex2bn
	cbnz	w0, LBB0_8
	b	LBB0_9
LBB0_5:
Lloh0:
	adrp	x8, _X509V3_F_S2I_ASN1_INTEGER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X509V3_F_S2I_ASN1_INTEGER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _X509V3_R_INVALID_NULL_VALUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _X509V3_R_INVALID_NULL_VALUE@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	bl	_X509V3err
	b	LBB0_12
LBB0_7:
	add	x0, sp, #8
	mov	x1, x19
	bl	_BN_dec2bn
	cbz	w0, LBB0_9
LBB0_8:
	ldrb	w8, [x19, w0, sxtw]
	cbz	w8, LBB0_13
LBB0_9:
	ldr	x0, [sp, #8]
	bl	_BN_free
Lloh5:
	adrp	x8, _X509V3_F_S2I_ASN1_INTEGER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _X509V3_F_S2I_ASN1_INTEGER@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _X509V3_R_BN_DEC2BN_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _X509V3_R_BN_DEC2BN_ERROR@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh10:
	adrp	x8, _X509V3_F_S2I_ASN1_INTEGER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _X509V3_F_S2I_ASN1_INTEGER@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x8]
	bl	_X509V3err
	mov	x19, #0
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_13:
	cmp	w20, #45
	b.ne	LBB0_15
; %bb.14:
	ldr	x0, [sp, #8]
	bl	_BN_is_zero
	cmp	x0, #0
	cset	w20, ne
	b	LBB0_16
LBB0_15:
	mov	w20, #1
LBB0_16:
	ldr	x0, [sp, #8]
	mov	x1, #0
	bl	_BN_to_ASN1_INTEGER
	mov	x19, x0
	ldr	x0, [sp, #8]
	bl	_BN_free
	cbz	x19, LBB0_19
; %bb.17:
	tbnz	w20, #0, LBB0_12
; %bb.18:
Lloh15:
	adrp	x8, _V_ASN1_NEG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V_ASN1_NEG@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_12
LBB0_19:
Lloh18:
	adrp	x8, _X509V3_F_S2I_ASN1_INTEGER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _X509V3_F_S2I_ASN1_INTEGER@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _X509V3_R_BN_TO_ASN1_INTEGER_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _X509V3_R_BN_TO_ASN1_INTEGER_ERROR@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_X509V3_F_S2I_ASN1_INTEGER,4,2  ; @X509V3_F_S2I_ASN1_INTEGER
	.comm	_X509V3_R_INVALID_NULL_VALUE,4,2 ; @X509V3_R_INVALID_NULL_VALUE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_X509V3_R_BN_DEC2BN_ERROR,4,2   ; @X509V3_R_BN_DEC2BN_ERROR
	.comm	_X509V3_R_BN_TO_ASN1_INTEGER_ERROR,4,2 ; @X509V3_R_BN_TO_ASN1_INTEGER_ERROR
	.comm	_V_ASN1_NEG,4,2                 ; @V_ASN1_NEG
.subsections_via_symbols
