	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x509_get_serial
_x509_get_serial:                       ## @x509_get_serial
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	%rsi, %rcx
	subq	%rax, %rcx
	testq	%rcx, %rcx
	jle	LBB0_1
## %bb.4:
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movzbl	(%rax), %ecx
	movq	_ASN1_CONTEXT_SPECIFIC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_ASN1_PRIMITIVE@GOTPCREL(%rip), %rdi
	orl	(%rdi), %edx
	orl	$2, %edx
	cmpl	%ecx, %edx
	je	LBB0_7
## %bb.5:
	movq	_ASN1_INTEGER@GOTPCREL(%rip), %rdx
	cmpb	(%rdx), %cl
	je	LBB0_7
## %bb.6:
	movq	_SVN_ERR_ASN1_UNEXPECTED_TAG@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_SVN_ERR_ASN1_OUT_OF_DATA@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_svn_error_create
	jmp	LBB0_3
LBB0_7:
	leaq	1(%rax), %rcx
	movq	%rcx, (%rbx)
	movzbl	(%rax), %eax
	movl	%eax, 12(%r14)
	leaq	8(%r14), %rdx
	movq	%rbx, %rdi
	callq	_asn1_get_len
	testq	%rax, %rax
	je	LBB0_8
LBB0_3:
	movq	_SVN_ERR_X509_CERT_INVALID_SERIAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_svn_error_create               ## TAILCALL
LBB0_8:
	movq	(%rbx), %rax
	movq	%rax, (%r14)
	movslq	8(%r14), %rax
	addq	%rax, (%rbx)
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SVN_ERR_ASN1_OUT_OF_DATA,4,2   ## @SVN_ERR_ASN1_OUT_OF_DATA
	.comm	_SVN_ERR_X509_CERT_INVALID_SERIAL,4,2 ## @SVN_ERR_X509_CERT_INVALID_SERIAL
	.comm	_ASN1_CONTEXT_SPECIFIC,4,2      ## @ASN1_CONTEXT_SPECIFIC
	.comm	_ASN1_PRIMITIVE,4,2             ## @ASN1_PRIMITIVE
	.comm	_ASN1_INTEGER,1,0               ## @ASN1_INTEGER
	.comm	_SVN_ERR_ASN1_UNEXPECTED_TAG,4,2 ## @SVN_ERR_ASN1_UNEXPECTED_TAG
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.no_dead_strip	_x509_get_serial
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x509_get_serial
_x509_get_serial:                       ; @x509_get_serial
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	sub	x9, x1, x8
	cmp	x9, #0
	b.le	LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, _ASN1_CONTEXT_SPECIFIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ASN1_CONTEXT_SPECIFIC@GOTPAGEOFF]
	ldrb	w10, [x8]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x11, _ASN1_PRIMITIVE@GOTPAGE
Lloh4:
	ldr	x11, [x11, _ASN1_PRIMITIVE@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	orr	w9, w9, w11
	orr	w9, w9, #0x2
Lloh6:
	adrp	x11, _ASN1_INTEGER@GOTPAGE
Lloh7:
	ldr	x11, [x11, _ASN1_INTEGER@GOTPAGEOFF]
	ldrb	w11, [x11]
	cmp	w9, w10
	ccmp	w10, w11, #4, ne
	b.ne	LBB0_5
; %bb.2:
	mov	x20, x2
	mov	x19, x0
	add	x9, x8, #1
	str	x9, [x0]
	ldrb	w8, [x8]
	str	w8, [x2, #12]
	add	x2, x2, #8
	bl	_asn1_get_len
	cbnz	x0, LBB0_7
; %bb.3:
	ldr	x8, [x19]
	str	x8, [x20]
	ldrsw	x8, [x20, #8]
	ldr	x9, [x19]
	add	x8, x9, x8
	str	x8, [x19]
Lloh8:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh11:
	adrp	x8, _SVN_ERR_ASN1_OUT_OF_DATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SVN_ERR_ASN1_OUT_OF_DATA@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _SVN_ERR_ASN1_UNEXPECTED_TAG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SVN_ERR_ASN1_UNEXPECTED_TAG@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	mov	x1, #0
	mov	x2, #0
	bl	_svn_error_create
LBB0_7:
	mov	x1, x0
Lloh15:
	adrp	x8, _SVN_ERR_X509_CERT_INVALID_SERIAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SVN_ERR_X509_CERT_INVALID_SERIAL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_svn_error_create
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SVN_ERR_ASN1_OUT_OF_DATA,4,2   ; @SVN_ERR_ASN1_OUT_OF_DATA
	.comm	_SVN_ERR_X509_CERT_INVALID_SERIAL,4,2 ; @SVN_ERR_X509_CERT_INVALID_SERIAL
	.comm	_ASN1_CONTEXT_SPECIFIC,4,2      ; @ASN1_CONTEXT_SPECIFIC
	.comm	_ASN1_PRIMITIVE,4,2             ; @ASN1_PRIMITIVE
	.comm	_ASN1_INTEGER,1,0               ; @ASN1_INTEGER
	.comm	_SVN_ERR_ASN1_UNEXPECTED_TAG,4,2 ; @SVN_ERR_ASN1_UNEXPECTED_TAG
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.no_dead_strip	_x509_get_serial
.subsections_via_symbols
