	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x509_get_attr_type_value
_x509_get_attr_type_value:              ## @x509_get_attr_type_value
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_MBEDTLS_ASN1_CONSTRUCTED@GOTPCREL(%rip), %rax
	movq	_MBEDTLS_ASN1_SEQUENCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	-32(%rbp), %rdx
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	je	LBB0_2
LBB0_1:
	movq	_MBEDTLS_ERR_X509_INVALID_NAME@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_2:
	movq	(%r15), %rax
	movq	%rbx, %rcx
	subq	%rax, %rcx
	testq	%rcx, %rcx
	jle	LBB0_13
## %bb.3:
	movb	(%rax), %al
	movb	%al, 32(%r14)
	leaq	40(%r14), %rdx
	movq	_MBEDTLS_ASN1_OID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	jne	LBB0_1
## %bb.4:
	movq	(%r15), %rax
	movq	%rax, 48(%r14)
	movq	(%r15), %rax
	addq	40(%r14), %rax
	movq	%rax, (%r15)
	movq	%rbx, %rcx
	subq	%rax, %rcx
	testq	%rcx, %rcx
	jle	LBB0_13
## %bb.5:
	movb	(%rax), %cl
	movq	_MBEDTLS_ASN1_BMP_STRING@GOTPCREL(%rip), %rdx
	cmpb	(%rdx), %cl
	je	LBB0_17
## %bb.6:
	movq	_MBEDTLS_ASN1_UTF8_STRING@GOTPCREL(%rip), %rdx
	cmpb	(%rdx), %cl
	je	LBB0_17
## %bb.7:
	movq	_MBEDTLS_ASN1_T61_STRING@GOTPCREL(%rip), %rdx
	cmpb	(%rdx), %cl
	je	LBB0_17
## %bb.8:
	movq	_MBEDTLS_ASN1_PRINTABLE_STRING@GOTPCREL(%rip), %rdx
	cmpb	(%rdx), %cl
	je	LBB0_17
## %bb.9:
	movq	_MBEDTLS_ASN1_IA5_STRING@GOTPCREL(%rip), %rdx
	cmpb	(%rdx), %cl
	je	LBB0_17
## %bb.10:
	movq	_MBEDTLS_ASN1_UNIVERSAL_STRING@GOTPCREL(%rip), %rdx
	cmpb	(%rdx), %cl
	je	LBB0_17
## %bb.11:
	movq	_MBEDTLS_ASN1_BIT_STRING@GOTPCREL(%rip), %rdx
	cmpb	(%rdx), %cl
	je	LBB0_17
## %bb.12:
	movq	_MBEDTLS_ERR_X509_INVALID_NAME@GOTPCREL(%rip), %rcx
	movq	_MBEDTLS_ERR_ASN1_UNEXPECTED_TAG@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_MBEDTLS_ERR_X509_INVALID_NAME@GOTPCREL(%rip), %rcx
	movq	_MBEDTLS_ERR_ASN1_OUT_OF_DATA@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
LBB0_15:
	addl	(%rcx), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	leaq	1(%rax), %rcx
	movq	%rcx, (%r15)
	movb	(%rax), %al
	movb	%al, 8(%r14)
	leaq	16(%r14), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mbedtls_asn1_get_len
	testl	%eax, %eax
	jne	LBB0_1
## %bb.18:
	movq	(%r15), %rax
	movq	%rax, 24(%r14)
	movq	16(%r14), %rax
	addq	%rax, (%r15)
	movq	$0, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ## @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ## @MBEDTLS_ASN1_SEQUENCE
	.comm	_MBEDTLS_ERR_X509_INVALID_NAME,4,2 ## @MBEDTLS_ERR_X509_INVALID_NAME
	.comm	_MBEDTLS_ERR_ASN1_OUT_OF_DATA,4,2 ## @MBEDTLS_ERR_ASN1_OUT_OF_DATA
	.comm	_MBEDTLS_ASN1_OID,4,2           ## @MBEDTLS_ASN1_OID
	.comm	_MBEDTLS_ASN1_BMP_STRING,1,0    ## @MBEDTLS_ASN1_BMP_STRING
	.comm	_MBEDTLS_ASN1_UTF8_STRING,1,0   ## @MBEDTLS_ASN1_UTF8_STRING
	.comm	_MBEDTLS_ASN1_T61_STRING,1,0    ## @MBEDTLS_ASN1_T61_STRING
	.comm	_MBEDTLS_ASN1_PRINTABLE_STRING,1,0 ## @MBEDTLS_ASN1_PRINTABLE_STRING
	.comm	_MBEDTLS_ASN1_IA5_STRING,1,0    ## @MBEDTLS_ASN1_IA5_STRING
	.comm	_MBEDTLS_ASN1_UNIVERSAL_STRING,1,0 ## @MBEDTLS_ASN1_UNIVERSAL_STRING
	.comm	_MBEDTLS_ASN1_BIT_STRING,1,0    ## @MBEDTLS_ASN1_BIT_STRING
	.comm	_MBEDTLS_ERR_ASN1_UNEXPECTED_TAG,4,2 ## @MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
	.no_dead_strip	_x509_get_attr_type_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x509_get_attr_type_value
_x509_get_attr_type_value:              ; @x509_get_attr_type_value
	.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, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MBEDTLS_ASN1_SEQUENCE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MBEDTLS_ASN1_SEQUENCE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x2, sp, #8
	bl	_mbedtls_asn1_get_tag
	cbz	w0, LBB0_2
LBB0_1:
Lloh6:
	adrp	x8, _MBEDTLS_ERR_X509_INVALID_NAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_INVALID_NAME@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w0, w8, w0
	b	LBB0_15
LBB0_2:
	ldr	x8, [x20]
	sub	x9, x21, x8
	cmp	x9, #0
	b.le	LBB0_13
; %bb.3:
	ldrb	w8, [x8]
	strb	w8, [x19, #32]
	add	x2, x19, #40
Lloh9:
	adrp	x8, _MBEDTLS_ASN1_OID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MBEDTLS_ASN1_OID@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_mbedtls_asn1_get_tag
	cbnz	w0, LBB0_1
; %bb.4:
	ldr	x8, [x20]
	str	x8, [x19, #48]
	ldr	x8, [x19, #40]
	ldr	x9, [x20]
	add	x8, x9, x8
	sub	x9, x21, x8
	str	x8, [x20]
	cmp	x9, #0
	b.le	LBB0_13
; %bb.5:
	ldrb	w9, [x8]
Lloh12:
	adrp	x10, _MBEDTLS_ASN1_BMP_STRING@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MBEDTLS_ASN1_BMP_STRING@GOTPAGEOFF]
	ldrb	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_16
; %bb.6:
Lloh14:
	adrp	x10, _MBEDTLS_ASN1_UTF8_STRING@GOTPAGE
Lloh15:
	ldr	x10, [x10, _MBEDTLS_ASN1_UTF8_STRING@GOTPAGEOFF]
	ldrb	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_16
; %bb.7:
Lloh16:
	adrp	x10, _MBEDTLS_ASN1_T61_STRING@GOTPAGE
Lloh17:
	ldr	x10, [x10, _MBEDTLS_ASN1_T61_STRING@GOTPAGEOFF]
	ldrb	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_16
; %bb.8:
Lloh18:
	adrp	x10, _MBEDTLS_ASN1_PRINTABLE_STRING@GOTPAGE
Lloh19:
	ldr	x10, [x10, _MBEDTLS_ASN1_PRINTABLE_STRING@GOTPAGEOFF]
	ldrb	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_16
; %bb.9:
Lloh20:
	adrp	x10, _MBEDTLS_ASN1_IA5_STRING@GOTPAGE
Lloh21:
	ldr	x10, [x10, _MBEDTLS_ASN1_IA5_STRING@GOTPAGEOFF]
	ldrb	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_16
; %bb.10:
Lloh22:
	adrp	x10, _MBEDTLS_ASN1_UNIVERSAL_STRING@GOTPAGE
Lloh23:
	ldr	x10, [x10, _MBEDTLS_ASN1_UNIVERSAL_STRING@GOTPAGEOFF]
	ldrb	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_16
; %bb.11:
Lloh24:
	adrp	x10, _MBEDTLS_ASN1_BIT_STRING@GOTPAGE
Lloh25:
	ldr	x10, [x10, _MBEDTLS_ASN1_BIT_STRING@GOTPAGEOFF]
	ldrb	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_16
; %bb.12:
Lloh26:
	adrp	x8, _MBEDTLS_ERR_X509_INVALID_NAME@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_INVALID_NAME@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _MBEDTLS_ERR_ASN1_UNEXPECTED_TAG@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MBEDTLS_ERR_ASN1_UNEXPECTED_TAG@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh31:
	adrp	x8, _MBEDTLS_ERR_X509_INVALID_NAME@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_INVALID_NAME@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _MBEDTLS_ERR_ASN1_OUT_OF_DATA@GOTPAGE
Lloh35:
	ldr	x9, [x9, _MBEDTLS_ERR_ASN1_OUT_OF_DATA@GOTPAGEOFF]
LBB0_14:
	ldr	w9, [x9]
	add	w0, w9, w8
LBB0_15:
	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
LBB0_16:
	add	x9, x8, #1
	str	x9, [x20]
	ldrb	w8, [x8]
	strb	w8, [x19, #8]
	add	x2, x19, #16
	mov	x0, x20
	mov	x1, x21
	bl	_mbedtls_asn1_get_len
	cbnz	w0, LBB0_1
; %bb.17:
	ldr	x8, [x20]
	str	x8, [x19, #24]
	ldr	x8, [x19, #16]
	ldr	x9, [x20]
	add	x8, x9, x8
	str	x8, [x20]
	str	xzr, [x19]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ; @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ; @MBEDTLS_ASN1_SEQUENCE
	.comm	_MBEDTLS_ERR_X509_INVALID_NAME,4,2 ; @MBEDTLS_ERR_X509_INVALID_NAME
	.comm	_MBEDTLS_ERR_ASN1_OUT_OF_DATA,4,2 ; @MBEDTLS_ERR_ASN1_OUT_OF_DATA
	.comm	_MBEDTLS_ASN1_OID,4,2           ; @MBEDTLS_ASN1_OID
	.comm	_MBEDTLS_ASN1_BMP_STRING,1,0    ; @MBEDTLS_ASN1_BMP_STRING
	.comm	_MBEDTLS_ASN1_UTF8_STRING,1,0   ; @MBEDTLS_ASN1_UTF8_STRING
	.comm	_MBEDTLS_ASN1_T61_STRING,1,0    ; @MBEDTLS_ASN1_T61_STRING
	.comm	_MBEDTLS_ASN1_PRINTABLE_STRING,1,0 ; @MBEDTLS_ASN1_PRINTABLE_STRING
	.comm	_MBEDTLS_ASN1_IA5_STRING,1,0    ; @MBEDTLS_ASN1_IA5_STRING
	.comm	_MBEDTLS_ASN1_UNIVERSAL_STRING,1,0 ; @MBEDTLS_ASN1_UNIVERSAL_STRING
	.comm	_MBEDTLS_ASN1_BIT_STRING,1,0    ; @MBEDTLS_ASN1_BIT_STRING
	.comm	_MBEDTLS_ERR_ASN1_UNEXPECTED_TAG,4,2 ; @MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
	.no_dead_strip	_x509_get_attr_type_value
.subsections_via_symbols
