	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_cert_check_eku           ## -- Begin function hx509_cert_check_eku
	.p2align	4, 0x90
_hx509_cert_check_eku:                  ## @hx509_cert_check_eku
	.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
	movq	%rdx, %r15
	movl	%edi, %r14d
	movl	%esi, %edi
	callq	__hx509_get_cert
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_find_extension_eku
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_hx509_clear_error_string
	jmp	LBB0_8
LBB0_1:
	cmpq	$0, -48(%rbp)
	je	LBB0_7
## %bb.2:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-40(%rbp), %rsi
	addq	%r12, %rsi
	movq	%r15, %rdi
	callq	_der_heim_oid_cmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	addq	$4, %r12
	cmpq	-48(%rbp), %rbx
	jb	LBB0_5
LBB0_7:
	leaq	-48(%rbp), %rdi
	callq	_free_ExtKeyUsage
	movl	%r14d, %edi
	callq	_hx509_clear_error_string
	movq	_HX509_CERTIFICATE_MISSING_EKU@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_6:
	leaq	-48(%rbp), %rdi
	callq	_free_ExtKeyUsage
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HX509_CERTIFICATE_MISSING_EKU,4,2 ## @HX509_CERTIFICATE_MISSING_EKU
	.comm	_id_any_eku,8,3                 ## @id_any_eku
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_cert_check_eku           ; -- Begin function hx509_cert_check_eku
	.p2align	2
_hx509_cert_check_eku:                  ; @hx509_cert_check_eku
	.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	x20, x2
	mov	x19, x0
	mov	x0, x1
	bl	__hx509_get_cert
	mov	x1, sp
	bl	_find_extension_eku
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	bl	_hx509_clear_error_string
	b	LBB0_8
LBB0_2:
	ldr	x8, [sp]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x21, #0
	mov	x22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	add	x1, x8, x21
	mov	x0, x20
	bl	_der_heim_oid_cmp
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldr	x8, [sp]
	add	x21, x21, #4
	cmp	x22, x8
	b.lo	LBB0_4
LBB0_6:
	mov	x0, sp
	bl	_free_ExtKeyUsage
	mov	x0, x19
	bl	_hx509_clear_error_string
Lloh0:
	adrp	x8, _HX509_CERTIFICATE_MISSING_EKU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HX509_CERTIFICATE_MISSING_EKU@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	b	LBB0_8
LBB0_7:
	mov	x0, sp
	bl	_free_ExtKeyUsage
	mov	w21, #0
LBB0_8:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HX509_CERTIFICATE_MISSING_EKU,4,2 ; @HX509_CERTIFICATE_MISSING_EKU
	.comm	_id_any_eku,8,3                 ; @id_any_eku
.subsections_via_symbols
