	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hx509_verify_signature        ## -- Begin function _hx509_verify_signature
	.p2align	4, 0x90
__hx509_verify_signature:               ## @_hx509_verify_signature
	.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	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r13
	movl	%edi, %r12d
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	movq	%rsi, %rdi
	callq	__hx509_get_cert
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_find_sig_alg
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %rbx
	testq	%r14, %r14
	je	LBB0_7
## %bb.3:
	movq	_PROVIDE_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.10:
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.11:
	movq	%r14, %rdi
	callq	_der_heim_oid_cmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.12:
	movl	%r12d, %edi
	callq	_hx509_clear_error_string
	movq	_HX509_SIG_ALG_DONT_MATCH_KEY_ALG@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_5:
	movq	%r13, %rdi
	callq	_find_sig_alg
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	_REQUIRE_SIGNER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_8
## %bb.13:
	movl	%r12d, %edi
	callq	_hx509_clear_error_string
	movq	_HX509_CRYPTO_SIGNATURE_WITHOUT_SIGNER@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_6:
	movl	%r12d, %edi
	callq	_hx509_clear_error_string
	movq	_HX509_SIG_ALG_NO_SUPPORTED@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	movq	8(%rbx), %rax
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r13, %rcx
	movq	%r15, %r8
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_4:
	movl	%r12d, %edi
	callq	_hx509_clear_error_string
	movq	_HX509_CRYPTO_SIG_NO_CONF@GOTPCREL(%rip), %rax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_HX509_SIG_ALG_NO_SUPPORTED,4,2 ## @HX509_SIG_ALG_NO_SUPPORTED
	.comm	_PROVIDE_CONF,4,2               ## @PROVIDE_CONF
	.comm	_HX509_CRYPTO_SIG_NO_CONF,4,2   ## @HX509_CRYPTO_SIG_NO_CONF
	.comm	_REQUIRE_SIGNER,4,2             ## @REQUIRE_SIGNER
	.comm	_HX509_CRYPTO_SIGNATURE_WITHOUT_SIGNER,4,2 ## @HX509_CRYPTO_SIGNATURE_WITHOUT_SIGNER
	.comm	_HX509_SIG_ALG_DONT_MATCH_KEY_ALG,4,2 ## @HX509_SIG_ALG_DONT_MATCH_KEY_ALG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hx509_verify_signature        ; -- Begin function _hx509_verify_signature
	.p2align	2
__hx509_verify_signature:               ; @_hx509_verify_signature
	.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	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x20, x0
	cbz	x1, LBB0_7
; %bb.1:
	mov	x0, x1
	bl	__hx509_get_cert
	mov	x24, x0
	mov	x0, x22
	bl	_find_sig_alg
	cbz	x0, LBB0_10
; %bb.2:
	mov	x23, x0
	cbz	x24, LBB0_8
; %bb.3:
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _PROVIDE_CONF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PROVIDE_CONF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.4:
	ldr	x1, [x23, #16]
	cbz	x1, LBB0_13
; %bb.5:
	mov	x0, x24
	bl	_der_heim_oid_cmp
	cbz	x0, LBB0_13
; %bb.6:
	mov	x0, x20
	bl	_hx509_clear_error_string
Lloh3:
	adrp	x8, _HX509_SIG_ALG_DONT_MATCH_KEY_ALG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HX509_SIG_ALG_DONT_MATCH_KEY_ALG@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	mov	x0, x22
	bl	_find_sig_alg
	mov	x23, x0
	cbz	x0, LBB0_10
LBB0_8:
	ldr	w8, [x23]
Lloh5:
	adrp	x9, _REQUIRE_SIGNER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _REQUIRE_SIGNER@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.9:
	mov	x0, x20
	bl	_hx509_clear_error_string
Lloh8:
	adrp	x8, _HX509_CRYPTO_SIGNATURE_WITHOUT_SIGNER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HX509_CRYPTO_SIGNATURE_WITHOUT_SIGNER@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	mov	x0, x20
	bl	_hx509_clear_error_string
Lloh10:
	adrp	x8, _HX509_SIG_ALG_NO_SUPPORTED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HX509_SIG_ALG_NO_SUPPORTED@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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
LBB0_12:
	mov	x24, #0
LBB0_13:
	ldr	x6, [x23, #8]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	mov	x3, x22
	mov	x4, x21
	mov	x5, 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
	br	x6
LBB0_14:
	mov	x0, x20
	bl	_hx509_clear_error_string
Lloh12:
	adrp	x8, _HX509_CRYPTO_SIG_NO_CONF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HX509_CRYPTO_SIG_NO_CONF@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HX509_SIG_ALG_NO_SUPPORTED,4,2 ; @HX509_SIG_ALG_NO_SUPPORTED
	.comm	_PROVIDE_CONF,4,2               ; @PROVIDE_CONF
	.comm	_HX509_CRYPTO_SIG_NO_CONF,4,2   ; @HX509_CRYPTO_SIG_NO_CONF
	.comm	_REQUIRE_SIGNER,4,2             ; @REQUIRE_SIGNER
	.comm	_HX509_CRYPTO_SIGNATURE_WITHOUT_SIGNER,4,2 ; @HX509_CRYPTO_SIGNATURE_WITHOUT_SIGNER
	.comm	_HX509_SIG_ALG_DONT_MATCH_KEY_ALG,4,2 ; @HX509_SIG_ALG_DONT_MATCH_KEY_ALG
.subsections_via_symbols
