	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_X509_REQ_to_X509               ## -- Begin function X509_REQ_to_X509
	.p2align	4, 0x90
_X509_REQ_to_X509:                      ## @X509_REQ_to_X509
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_X509_new
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	(%r15), %edi
	callq	_sk_X509_ATTRIBUTE_num
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	callq	_ASN1_INTEGER_new
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	%rax, %rdi
	movl	$2, %esi
	callq	_ASN1_INTEGER_set
	testl	%eax, %eax
	je	LBB0_12
LBB0_5:
	movq	%r15, %rdi
	callq	_X509_REQ_get_subject_name
	movq	%rax, %r13
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_X509_set_subject_name
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_X509_set_issuer_name
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	callq	_X509_gmtime_adj
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movl	(%rbx), %edi
	movslq	%r12d, %rax
	imulq	$86400, %rax, %rsi              ## imm = 0x15180
	callq	_X509_gmtime_adj
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%r15, %rdi
	callq	_X509_REQ_get0_pubkey
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_X509_set_pubkey
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	callq	_EVP_md5
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_X509_sign
	testl	%eax, %eax
	jne	LBB0_14
LBB0_12:
	movq	%rbx, %rdi
	callq	_X509_free
	jmp	LBB0_13
LBB0_1:
	movq	_X509_F_X509_REQ_TO_X509@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_X509err
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X509_F_X509_REQ_TO_X509,4,2    ## @X509_F_X509_REQ_TO_X509
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_X509_REQ_to_X509               ; -- Begin function X509_REQ_to_X509
	.p2align	2
_X509_REQ_to_X509:                      ; @X509_REQ_to_X509
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x22, x1
	mov	x21, x0
	bl	_X509_new
	mov	x19, x0
	cbz	x0, LBB0_12
; %bb.1:
	ldr	w0, [x21]
	bl	_sk_X509_ATTRIBUTE_num
	cbz	x0, LBB0_4
; %bb.2:
	bl	_ASN1_INTEGER_new
	str	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.3:
	mov	w1, #2
	bl	_ASN1_INTEGER_set
	cbz	w0, LBB0_11
LBB0_4:
	mov	x0, x21
	bl	_X509_REQ_get_subject_name
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	bl	_X509_set_subject_name
	cbz	x0, LBB0_11
; %bb.5:
	mov	x0, x19
	mov	x1, x23
	bl	_X509_set_issuer_name
	cbz	x0, LBB0_11
; %bb.6:
	ldr	w0, [x19, #4]
	mov	x1, #0
	bl	_X509_gmtime_adj
	cbz	x0, LBB0_11
; %bb.7:
	ldr	w0, [x19]
	mov	w8, #20864
	movk	w8, #1, lsl #16
	smull	x1, w22, w8
	bl	_X509_gmtime_adj
	cbz	x0, LBB0_11
; %bb.8:
	mov	x0, x21
	bl	_X509_REQ_get0_pubkey
	cbz	x0, LBB0_11
; %bb.9:
	mov	x1, x0
	mov	x0, x19
	bl	_X509_set_pubkey
	cbz	w0, LBB0_11
; %bb.10:
	bl	_EVP_md5
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_X509_sign
	cbnz	w0, LBB0_13
LBB0_11:
	mov	x0, x19
	bl	_X509_free
	mov	x19, #0
	b	LBB0_13
LBB0_12:
Lloh0:
	adrp	x8, _X509_F_X509_REQ_TO_X509@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X509_F_X509_REQ_TO_X509@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_X509err
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_X509_F_X509_REQ_TO_X509,4,2    ; @X509_F_X509_REQ_TO_X509
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
.subsections_via_symbols
