	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_asn1_get_bitstring     ## -- Begin function mbedtls_asn1_get_bitstring
	.p2align	4, 0x90
_mbedtls_asn1_get_bitstring:            ## @mbedtls_asn1_get_bitstring
	.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, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_MBEDTLS_ASN1_BIT_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:
	decl	%eax
	movl	%eax, (%rbx)
	movq	(%r15), %rcx
	movb	(%rcx), %dl
	movb	%dl, 4(%rbx)
	cmpb	$8, %dl
	jb	LBB0_5
## %bb.4:
	movq	_MBEDTLS_ERR_ASN1_INVALID_LENGTH@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_MBEDTLS_ERR_ASN1_OUT_OF_DATA@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	incq	%rcx
	movq	%rcx, (%r15)
	movq	%rcx, 8(%rbx)
	movl	%eax, %ecx
	addq	(%r15), %rcx
	movq	%rcx, (%r15)
	xorl	%eax, %eax
	cmpq	%r14, %rcx
	je	LBB0_8
## %bb.6:
	movq	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ASN1_BIT_STRING,4,2    ## @MBEDTLS_ASN1_BIT_STRING
	.comm	_MBEDTLS_ERR_ASN1_OUT_OF_DATA,4,2 ## @MBEDTLS_ERR_ASN1_OUT_OF_DATA
	.comm	_MBEDTLS_ERR_ASN1_INVALID_LENGTH,4,2 ## @MBEDTLS_ERR_ASN1_INVALID_LENGTH
	.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_asn1_get_bitstring     ; -- Begin function mbedtls_asn1_get_bitstring
	.p2align	2
_mbedtls_asn1_get_bitstring:            ; @mbedtls_asn1_get_bitstring
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MBEDTLS_ASN1_BIT_STRING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ASN1_BIT_STRING@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	bl	_mbedtls_asn1_get_tag
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w8, [x21]
	cmp	w8, #0
	b.le	LBB0_5
; %bb.3:
	sub	w8, w8, #1
	str	w8, [x21]
	ldr	x9, [x20]
	ldrb	w10, [x9]
	strb	w10, [x21, #4]
	cmp	w10, #8
	b.lo	LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _MBEDTLS_ERR_ASN1_INVALID_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ERR_ASN1_INVALID_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_1
LBB0_5:
Lloh6:
	adrp	x8, _MBEDTLS_ERR_ASN1_OUT_OF_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MBEDTLS_ERR_ASN1_OUT_OF_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_1
LBB0_6:
	add	x9, x9, #1
	str	x9, [x20]
	str	x9, [x21, #8]
	ldr	x9, [x20]
	add	x8, x9, w8, uxtw
	str	x8, [x20]
Lloh9:
	adrp	x9, _MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	x8, x19
	csel	w0, wzr, w9, eq
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ASN1_BIT_STRING,4,2    ; @MBEDTLS_ASN1_BIT_STRING
	.comm	_MBEDTLS_ERR_ASN1_OUT_OF_DATA,4,2 ; @MBEDTLS_ERR_ASN1_OUT_OF_DATA
	.comm	_MBEDTLS_ERR_ASN1_INVALID_LENGTH,4,2 ; @MBEDTLS_ERR_ASN1_INVALID_LENGTH
	.comm	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH,4,2 ; @MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
.subsections_via_symbols
