	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_save_serial                    ## -- Begin function save_serial
	.p2align	4, 0x90
_save_serial:                           ## @save_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BSIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_strlen
	movl	%eax, %r15d
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%r15d, %eax
	incl	%eax
	cmpl	(%r12), %eax
	jge	LBB0_4
## %bb.5:
	leaq	L_.str.1(%rip), %rdx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%r13, %rcx
	movq	%rbx, %r8
	callq	_BIO_snprintf
	jmp	LBB0_6
LBB0_1:
	movl	(%r12), %edx
	cmpl	%edx, %r15d
	jge	LBB0_4
## %bb.2:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_OPENSSL_strlcpy
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_BIO_new_file
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	%rax, %r13
	xorl	%r12d, %r12d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_BN_to_ASN1_INTEGER
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_i2a_ASN1_INTEGER
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_BIO_puts
	movl	$1, %r12d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	%rbx, (%rax)
	jmp	LBB0_13
LBB0_4:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_BIO_printf
	jmp	LBB0_8
LBB0_7:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERR_print_errors
LBB0_8:
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movq	%r13, %rdi
	callq	_BIO_free_all
	movq	%rbx, %rdi
	callq	_ASN1_INTEGER_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_BIO_printf
	jmp	LBB0_13
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BSIZE,4,2                      ## @BSIZE
	.comm	_bio_err,4,2                    ## @bio_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"file name too long\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s.%s"

L_.str.2:                               ## @.str.2
	.asciz	"w"

L_.str.3:                               ## @.str.3
	.asciz	"error converting serial to ASN.1 format\n"

L_.str.4:                               ## @.str.4
	.asciz	"\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_save_serial                    ; -- Begin function save_serial
	.p2align	2
_save_serial:                           ; @save_serial
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x26, _BSIZE@GOTPAGE
Lloh4:
	ldr	x26, [x26, _BSIZE@GOTPAGEOFF]
	ldr	w24, [x26]
	mov	x9, x24
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	bl	_strlen
	mov	x25, x0
	cbz	x23, LBB0_3
; %bb.1:
	mov	x0, x23
	bl	_strlen
	add	w8, w25, w0
	add	w8, w8, #1
	ldr	w9, [x26]
	cmp	w8, w9
	b.ge	LBB0_9
; %bb.2:
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x1, x24
	mov	x3, x21
	mov	x4, x23
	bl	_BIO_snprintf
	b	LBB0_5
LBB0_3:
	ldr	w2, [x26]
	cmp	w25, w2
	b.ge	LBB0_9
; %bb.4:
	mov	x0, x22
	mov	x1, x21
	bl	_OPENSSL_strlcpy
LBB0_5:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_BIO_new_file
	mov	x21, x0
	cbz	x0, LBB0_10
; %bb.6:
	mov	x0, x20
	mov	x1, #0
	bl	_BN_to_ASN1_INTEGER
	mov	x20, x0
	cbz	x0, LBB0_15
; %bb.7:
	mov	x0, x21
	mov	x1, x20
	bl	_i2a_ASN1_INTEGER
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_BIO_puts
	cbz	x19, LBB0_16
; %bb.8:
	str	x20, [x19]
	mov	w19, #1
	b	LBB0_12
LBB0_9:
Lloh13:
	adrp	x8, _bio_err@GOTPAGE
Lloh14:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_BIO_printf
	mov	x21, #0
	b	LBB0_11
LBB0_10:
Lloh18:
	adrp	x8, _bio_err@GOTPAGE
Lloh19:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_ERR_print_errors
LBB0_11:
	mov	w19, #0
LBB0_12:
	mov	x20, #0
LBB0_13:
	mov	x0, x21
	bl	_BIO_free_all
	mov	x0, x20
	bl	_ASN1_INTEGER_free
	ldur	x8, [x29, #-72]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.14:
	mov	x0, x19
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh24:
	adrp	x8, _bio_err@GOTPAGE
Lloh25:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_BIO_printf
	mov	w19, #0
	b	LBB0_13
LBB0_16:
	mov	w19, #1
	b	LBB0_13
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_BSIZE,4,2                      ; @BSIZE
	.comm	_bio_err,4,2                    ; @bio_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"file name too long\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s.%s"

l_.str.2:                               ; @.str.2
	.asciz	"w"

l_.str.3:                               ; @.str.3
	.asciz	"error converting serial to ASN.1 format\n"

l_.str.4:                               ; @.str.4
	.asciz	"\n"

.subsections_via_symbols
