	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_asn1_get_bitstring_null ## -- Begin function mbedtls_asn1_get_bitstring_null
	.p2align	4, 0x90
_mbedtls_asn1_get_bitstring_null:       ## @mbedtls_asn1_get_bitstring_null
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	_MBEDTLS_ASN1_BIT_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	(%rbx), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, (%rbx)
	cmpq	$2, %rax
	jb	LBB0_4
## %bb.2:
	movq	(%r14), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%r14)
	cmpb	$0, (%rax)
	je	LBB0_3
LBB0_4:
	movq	_MBEDTLS_ERR_ASN1_INVALID_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ASN1_BIT_STRING,4,2    ## @MBEDTLS_ASN1_BIT_STRING
	.comm	_MBEDTLS_ERR_ASN1_INVALID_DATA,4,2 ## @MBEDTLS_ERR_ASN1_INVALID_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_asn1_get_bitstring_null ; -- Begin function mbedtls_asn1_get_bitstring_null
	.p2align	2
_mbedtls_asn1_get_bitstring_null:       ; @mbedtls_asn1_get_bitstring_null
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, 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
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x20]
	sub	x9, x8, #1
	str	x9, [x20]
	cmp	x8, #2
	b.lo	LBB0_3
; %bb.2:
	ldr	x8, [x19]
	add	x9, x8, #1
	str	x9, [x19]
	ldrb	w8, [x8]
	cbz	w8, LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _MBEDTLS_ERR_ASN1_INVALID_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ERR_ASN1_INVALID_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ASN1_BIT_STRING,4,2    ; @MBEDTLS_ASN1_BIT_STRING
	.comm	_MBEDTLS_ERR_ASN1_INVALID_DATA,4,2 ; @MBEDTLS_ERR_ASN1_INVALID_DATA
.subsections_via_symbols
