	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x509_parse_ext_key_usage
_x509_parse_ext_key_usage:              ## @x509_parse_ext_key_usage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	-32(%rbp), %rax
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%rax, %rdx
	callq	_asn1_get_next
	movq	-32(%rbp), %rdx
	testq	%rax, %rax
	js	LBB0_4
## %bb.1:
	movq	_ASN1_CLASS_UNIVERSAL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_4
## %bb.2:
	movq	-24(%rbp), %rax
	movq	_ASN1_TAG_BITSTRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	-16(%rbp), %esi
	testl	%esi, %esi
	jle	LBB0_4
## %bb.5:
	movq	_X509_EXT_KEY_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	movl	-12(%rbp), %edi
	callq	_asn1_bit_string_to_long
	movl	%eax, (%rbx)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movslq	%eax, %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_6
LBB0_4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-24(%rbp), %rcx
	movl	-16(%rbp), %r8d
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_CLASS_UNIVERSAL,8,3       ## @ASN1_CLASS_UNIVERSAL
	.comm	_ASN1_TAG_BITSTRING,8,3         ## @ASN1_TAG_BITSTRING
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"X509: Expected BIT STRING in KeyUsage; found %d tag 0x%x len %d"

	.comm	_X509_EXT_KEY_USAGE,4,2         ## @X509_EXT_KEY_USAGE
L_.str.1:                               ## @.str.1
	.asciz	"X509: KeyUsage 0x%lx"

	.no_dead_strip	_x509_parse_ext_key_usage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x509_parse_ext_key_usage
_x509_parse_ext_key_usage:              ; @x509_parse_ext_key_usage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x2
	mov	x19, x0
	add	x2, sp, #24
	mov	x0, x1
	mov	x1, x8
	bl	_asn1_get_next
	ldr	x2, [sp, #24]
	tbnz	x0, #63, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ASN1_CLASS_UNIVERSAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_CLASS_UNIVERSAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [sp, #32]
Lloh3:
	adrp	x9, _ASN1_TAG_BITSTRING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ASN1_TAG_BITSTRING@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w1, [sp, #40]
	cmp	x8, x9
	ccmp	w1, #0, #4, eq
	b.gt	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x8, [sp, #32]
	ldr	w9, [sp, #40]
	stp	x8, x9, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _X509_EXT_KEY_USAGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _X509_EXT_KEY_USAGE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	ldr	w0, [sp, #44]
	bl	_asn1_bit_string_to_long
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x19]
Lloh14:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	sxtw	x2, w0
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_wpa_printf
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_CLASS_UNIVERSAL,8,3       ; @ASN1_CLASS_UNIVERSAL
	.comm	_ASN1_TAG_BITSTRING,8,3         ; @ASN1_TAG_BITSTRING
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"X509: Expected BIT STRING in KeyUsage; found %d tag 0x%x len %d"

	.comm	_X509_EXT_KEY_USAGE,4,2         ; @X509_EXT_KEY_USAGE
l_.str.1:                               ; @.str.1
	.asciz	"X509: KeyUsage 0x%lx"

	.no_dead_strip	_x509_parse_ext_key_usage
.subsections_via_symbols
