	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_x509_get_ext           ## -- Begin function mbedtls_x509_get_ext
	.p2align	4, 0x90
_mbedtls_x509_get_ext:                  ## @mbedtls_x509_get_ext
	.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, %rbx
	movq	(%rdi), %rdx
	xorl	%eax, %eax
	cmpq	%rsi, %rdx
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	movb	(%rdx), %al
	movb	%al, (%rbx)
	leaq	8(%rbx), %rdx
	movq	_MBEDTLS_ASN1_CONTEXT_SPECIFIC@GOTPCREL(%rip), %rax
	movq	_MBEDTLS_ASN1_CONSTRUCTED@GOTPCREL(%rip), %r12
	orl	(%rax), %ecx
	orl	(%r12), %ecx
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	(%r14), %rax
	movq	%rax, 16(%rbx)
	movq	(%r14), %r15
	addq	8(%rbx), %r15
	movq	_MBEDTLS_ASN1_SEQUENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	(%r12), %ecx
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_MBEDTLS_ERR_X509_INVALID_EXTENSIONS@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	(%r14), %rcx
	addq	-40(%rbp), %rcx
	movl	$0, %eax
	cmpq	%rcx, %r15
	je	LBB0_7
## %bb.5:
	movq	_MBEDTLS_ERR_X509_INVALID_EXTENSIONS@GOTPCREL(%rip), %rcx
	movq	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	addl	(%rcx), %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ASN1_CONTEXT_SPECIFIC,4,2 ## @MBEDTLS_ASN1_CONTEXT_SPECIFIC
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ## @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ## @MBEDTLS_ASN1_SEQUENCE
	.comm	_MBEDTLS_ERR_X509_INVALID_EXTENSIONS,4,2 ## @MBEDTLS_ERR_X509_INVALID_EXTENSIONS
	.comm	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH,4,2 ## @MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_x509_get_ext           ; -- Begin function mbedtls_x509_get_ext
	.p2align	2
_mbedtls_x509_get_ext:                  ; @mbedtls_x509_get_ext
	.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
	ldr	x8, [x0]
	cmp	x8, x1
	b.eq	LBB0_6
; %bb.1:
	mov	x20, x2
	mov	x19, x0
	ldrb	w8, [x8]
	strb	w8, [x2], #8
Lloh0:
	adrp	x8, _MBEDTLS_ASN1_CONTEXT_SPECIFIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ASN1_CONTEXT_SPECIFIC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x21, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w8, w3
	orr	w3, w8, w9
	bl	_mbedtls_asn1_get_tag
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	x8, [x19]
	str	x8, [x20, #16]
	ldr	x8, [x19]
	ldr	x9, [x20, #8]
	add	x20, x8, x9
	ldr	w8, [x21]
Lloh5:
	adrp	x9, _MBEDTLS_ASN1_SEQUENCE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MBEDTLS_ASN1_SEQUENCE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_mbedtls_asn1_get_tag
	cbz	w0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _MBEDTLS_ERR_X509_INVALID_EXTENSIONS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_INVALID_EXTENSIONS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	add	w0, w8, w0
	b	LBB0_7
LBB0_4:
	ldr	x8, [x19]
	ldr	x9, [sp, #8]
	add	x8, x8, x9
	cmp	x20, x8
	b.eq	LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _MBEDTLS_ERR_X509_INVALID_EXTENSIONS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_INVALID_EXTENSIONS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	add	w0, w9, w8
	b	LBB0_7
LBB0_6:
	mov	w0, #0
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
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ASN1_CONTEXT_SPECIFIC,4,2 ; @MBEDTLS_ASN1_CONTEXT_SPECIFIC
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ; @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ; @MBEDTLS_ASN1_SEQUENCE
	.comm	_MBEDTLS_ERR_X509_INVALID_EXTENSIONS,4,2 ; @MBEDTLS_ERR_X509_INVALID_EXTENSIONS
	.comm	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH,4,2 ; @MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
.subsections_via_symbols
