	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sign
_sign:                                  ## @sign
	.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	%r9, %r12
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_X509_get_subject_name
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_X509_set_issuer_name
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	cmpl	$0, 24(%rbp)
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	callq	_set_cert_times
	testl	%eax, %eax
	je	LBB0_10
LBB0_3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_X509_set_pubkey
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	testl	%r13d, %r13d
	je	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_X509_get_ext_count
	testq	%rax, %rax
	jle	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_X509_delete_ext
	jmp	LBB0_6
LBB0_7:
	testq	%r12, %r12
	je	LBB0_9
## %bb.8:
	movq	16(%rbp), %r14
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_X509_set_version
	leaq	-52(%rbp), %r13
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_X509V3_set_ctx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_X509V3_set_nconf
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_X509V3_EXT_add_nconf
	testl	%eax, %eax
	je	LBB0_10
LBB0_9:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_X509_sign
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_11
LBB0_10:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERR_print_errors
	xorl	%eax, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bio_err,4,2                    ## @bio_err
	.no_dead_strip	_sign
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sign
_sign:                                  ; @sign
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x26, x7
	mov	x22, x6
	mov	x23, x5
	mov	x19, x4
	mov	x24, x3
	mov	x25, x2
	mov	x20, x1
	mov	x21, x0
	bl	_X509_get_subject_name
	mov	x1, x0
	mov	x0, x21
	bl	_X509_set_issuer_name
	cbz	w0, LBB0_11
; %bb.1:
	cbnz	w26, LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, #0
	mov	x2, #0
	mov	x3, x25
	bl	_set_cert_times
	cbz	w0, LBB0_11
LBB0_3:
	mov	x0, x21
	mov	x1, x20
	bl	_X509_set_pubkey
	cbz	w0, LBB0_11
; %bb.4:
	cbz	w24, LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_X509_get_ext_count
	cmp	x0, #1
	b.lt	LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #0
	bl	_X509_delete_ext
	mov	x0, x21
	bl	_X509_get_ext_count
	cmp	x0, #0
	b.gt	LBB0_6
LBB0_7:
	cbz	x23, LBB0_9
; %bb.8:
	mov	x0, x21
	mov	w1, #2
	bl	_X509_set_version
	add	x0, sp, #12
	mov	x1, x21
	mov	x2, x21
	mov	x3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_X509V3_set_ctx
	add	x0, sp, #12
	mov	x1, x23
	bl	_X509V3_set_nconf
	add	x1, sp, #12
	mov	x0, x23
	mov	x2, x22
	mov	x3, x21
	bl	_X509V3_EXT_add_nconf
	cbz	w0, LBB0_11
LBB0_9:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_X509_sign
	cbz	w0, LBB0_11
; %bb.10:
	mov	w0, #1
	b	LBB0_12
LBB0_11:
Lloh0:
	adrp	x8, _bio_err@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ERR_print_errors
	mov	w0, #0
LBB0_12:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_bio_err,4,2                    ; @bio_err
	.no_dead_strip	_sign
.subsections_via_symbols
