	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hx509_request_parse           ## -- Begin function _hx509_request_parse
	.p2align	4, 0x90
__hx509_request_parse:                  ## @_hx509_request_parse
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	%edi, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$7, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_HX509_UNSUPPORTED_OPERATION@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rcx
	movl	%r15d, %edi
	xorl	%esi, %esi
	movq	%rbx, %r8
	callq	_hx509_set_error_string
	movl	(%r14), %r12d
	jmp	LBB0_15
LBB0_2:
	addq	$7, %rbx
	leaq	-56(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_rk_undumpdata
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	-56(%rbp), %rdi
	movq	-64(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	callq	_decode_CertificationRequest
	movl	%eax, %r12d
	movq	-56(%rbp), %rdi
	callq	_rk_xfree
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.5:
	leaq	L_.str.3(%rip), %rcx
LBB0_6:
	movl	%r15d, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movq	%rbx, %r8
	callq	_hx509_set_error_string
LBB0_15:
	movl	%r12d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_hx509_request_init
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r12d
	leaq	-40(%rbp), %rdi
	callq	_free_CertificationRequest
	jmp	LBB0_15
LBB0_9:
	movl	(%r14), %esi
	leaq	-36(%rbp), %rdx
	movl	%r15d, %edi
	callq	_hx509_request_set_SubjectPublicKeyInfo
	testl	%eax, %eax
	jne	LBB0_10
## %bb.12:
	leaq	-40(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	callq	__hx509_name_from_Name
	testl	%eax, %eax
	je	LBB0_13
LBB0_10:
	movl	%eax, %r12d
	leaq	-40(%rbp), %rdi
	callq	_free_CertificationRequest
LBB0_11:
	movq	%r14, %rdi
	callq	_hx509_request_free
	jmp	LBB0_15
LBB0_13:
	movl	(%r14), %esi
	movl	-44(%rbp), %edx
	movl	%r15d, %edi
	callq	_hx509_request_set_name
	movl	%eax, %r12d
	leaq	-44(%rbp), %rdi
	callq	_hx509_name_free
	leaq	-40(%rbp), %rdi
	callq	_free_CertificationRequest
	testl	%r12d, %r12d
	jne	LBB0_11
## %bb.14:
	xorl	%r12d, %r12d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PKCS10:"

	.comm	_HX509_UNSUPPORTED_OPERATION,4,2 ## @HX509_UNSUPPORTED_OPERATION
L_.str.1:                               ## @.str.1
	.asciz	"unsupport type in %s"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to map file %s"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to decode %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hx509_request_parse           ; -- Begin function _hx509_request_parse
	.p2align	2
__hx509_request_parse:                  ; @_hx509_request_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #7
	bl	_strncmp
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x19, _HX509_UNSUPPORTED_OPERATION@GOTPAGE
Lloh3:
	ldr	x19, [x19, _HX509_UNSUPPORTED_OPERATION@GOTPAGEOFF]
	ldr	w2, [x19]
Lloh4:
	adrp	x3, l_.str.1@PAGE
Lloh5:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	w1, #0
	mov	x4, x20
	bl	_hx509_set_error_string
	ldr	w20, [x19]
	b	LBB0_7
LBB0_2:
	add	x22, x20, #7
	add	x1, sp, #8
	add	x2, sp, #24
	mov	x0, x22
	bl	_rk_undumpdata
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh6:
	adrp	x3, l_.str.2@PAGE
Lloh7:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	x0, [sp, #8]
	ldr	x1, [sp, #24]
	add	x2, sp, #40
	add	x3, sp, #16
	bl	_decode_CertificationRequest
	mov	x20, x0
	ldr	x0, [sp, #8]
	bl	_rk_xfree
	cbz	w20, LBB0_8
; %bb.5:
Lloh8:
	adrp	x3, l_.str.3@PAGE
Lloh9:
	add	x3, x3, l_.str.3@PAGEOFF
LBB0_6:
	mov	x0, x21
	mov	w1, #0
	mov	x2, x20
	mov	x4, x22
	bl	_hx509_set_error_string
LBB0_7:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
LBB0_8:
	mov	x0, x21
	mov	x1, x19
	bl	_hx509_request_init
	cbz	w0, LBB0_10
; %bb.9:
	mov	x20, x0
	add	x0, sp, #40
	bl	_free_CertificationRequest
	b	LBB0_7
LBB0_10:
	ldr	w1, [x19]
	add	x8, sp, #40
	orr	x2, x8, #0x4
	mov	x0, x21
	bl	_hx509_request_set_SubjectPublicKeyInfo
	cbnz	w0, LBB0_12
; %bb.11:
	add	x0, sp, #40
	add	x1, sp, #36
	bl	__hx509_name_from_Name
	cbz	w0, LBB0_14
LBB0_12:
	mov	x20, x0
	add	x0, sp, #40
	bl	_free_CertificationRequest
LBB0_13:
	mov	x0, x19
	bl	_hx509_request_free
	b	LBB0_7
LBB0_14:
	ldr	w1, [x19]
	ldr	w2, [sp, #36]
	mov	x0, x21
	bl	_hx509_request_set_name
	mov	x20, x0
	add	x0, sp, #36
	bl	_hx509_name_free
	add	x0, sp, #40
	bl	_free_CertificationRequest
	cbnz	w20, LBB0_13
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PKCS10:"

	.comm	_HX509_UNSUPPORTED_OPERATION,4,2 ; @HX509_UNSUPPORTED_OPERATION
l_.str.1:                               ; @.str.1
	.asciz	"unsupport type in %s"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to map file %s"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to decode %s"

.subsections_via_symbols
