	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_get_error_string         ## -- Begin function hx509_get_error_string
	.p2align	4, 0x90
_hx509_get_error_string:                ## @hx509_get_error_string
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	cmpl	%r14d, (%rbx)
	jne	LBB0_5
## %bb.2:
	xorl	%eax, %eax
	leaq	L_.str.3(%rip), %r15
	leaq	L_.str.2(%rip), %r12
	leaq	L_.str.1(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%rbx), %edx
	cmpq	$0, 8(%rbx)
	movq	%r12, %rcx
	cmoveq	%r15, %rcx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_rk_strpoolprintf
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
## %bb.4:
	movq	%rax, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rk_strpoolcollect              ## TAILCALL
LBB0_5:
	movl	8(%rdi), %edi
	movl	%r14d, %esi
	callq	_com_right
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:
	movl	%r14d, %edi
	callq	_strerror
	testq	%rax, %rax
	je	LBB0_7
LBB0_11:
	movq	%rax, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strdup                         ## TAILCALL
LBB0_7:
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdi
	movl	%r14d, %edx
	callq	_asprintf
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.9:
	movq	-40(%rbp), %rax
	jmp	LBB0_10
LBB0_8:
	xorl	%eax, %eax
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<unknown error: %d>"

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

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

L_.str.3:                               ## @.str.3
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_get_error_string         ; -- Begin function hx509_get_error_string
	.p2align	2
_hx509_get_error_string:                ; @hx509_get_error_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	ldr	x20, [x0]
	cbz	x20, LBB0_5
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, w19
	b.ne	LBB0_5
; %bb.2:
	mov	x0, #0
Lloh0:
	adrp	x21, l_.str.2@PAGE
Lloh1:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh2:
	adrp	x22, l_.str.3@PAGE
Lloh3:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh4:
	adrp	x19, l_.str.1@PAGE
Lloh5:
	add	x19, x19, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x20, #16]
	ldr	x8, [x20, #8]
	cmp	x8, #0
	csel	x3, x22, x21, eq
	mov	x1, x19
	bl	_rk_strpoolprintf
	ldr	x20, [x20, #8]
	cbnz	x20, LBB0_3
; %bb.4:
	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
	add	sp, sp, #64
	b	_rk_strpoolcollect
LBB0_5:
	ldr	w0, [x0, #8]
	mov	x1, x19
	bl	_com_right
	cbnz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_strerror
	cbz	x0, LBB0_8
LBB0_7:
	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
	add	sp, sp, #64
	b	_strdup
LBB0_8:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	x2, x19
	bl	_asprintf
	ldr	x8, [sp, #8]
	cmn	w0, #1
	csel	x0, xzr, x8, eq
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<unknown error: %d>"

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

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

l_.str.3:                               ; @.str.3
	.space	1

.subsections_via_symbols
