	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_ASN1_BIT_STRING            ## -- Begin function i2c_ASN1_BIT_STRING
	.p2align	4, 0x90
_i2c_ASN1_BIT_STRING:                   ## @i2c_ASN1_BIT_STRING
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movl	(%rdi), %ebx
	xorl	%r15d, %r15d
	testl	%ebx, %ebx
	jle	LBB0_17
## %bb.3:
	movl	4(%rdi), %eax
	movq	_ASN1_STRING_FLAG_BITS_LEFT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.22:
	andl	$7, %eax
	movl	%eax, %r15d
	jmp	LBB0_17
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_21
LBB0_4:
	movq	8(%rdi), %rax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	decq	%rbx
	movl	%ebx, %ecx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_5
## %bb.8:
	incl	%ebx
	jmp	LBB0_9
LBB0_6:
	movq	8(%rdi), %rax
	xorl	%ebx, %ebx
LBB0_9:
	movslq	%ebx, %rcx
	movl	-4(%rax,%rcx,4), %eax
	testb	$1, %al
	jne	LBB0_17
## %bb.10:
	movl	$1, %r15d
	testb	$2, %al
	jne	LBB0_17
## %bb.11:
	movl	$2, %r15d
	testb	$4, %al
	jne	LBB0_17
## %bb.12:
	movl	$3, %r15d
	testb	$8, %al
	jne	LBB0_17
## %bb.13:
	movl	$4, %r15d
	testb	$16, %al
	jne	LBB0_17
## %bb.14:
	movl	$5, %r15d
	testb	$32, %al
	jne	LBB0_17
## %bb.15:
	movl	$6, %r15d
	testb	$64, %al
	jne	LBB0_17
## %bb.16:
	movsbl	%al, %r15d
	shrl	$7, %r15d
	andl	$7, %r15d
LBB0_17:
	leal	1(%rbx), %r12d
	testq	%r14, %r14
	je	LBB0_21
## %bb.18:
	movq	(%r14), %r13
	movb	%r15b, (%r13)
	incq	%r13
	testl	%ebx, %ebx
	jle	LBB0_20
## %bb.19:
	movq	8(%rdi), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_memcpy
	movl	%ebx, %eax
	movl	$255, %edx
	movl	%r15d, %ecx
	shll	%cl, %edx
	andb	%dl, -1(%r13,%rax)
	addq	%rax, %r13
LBB0_20:
	movq	%r13, (%r14)
LBB0_21:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_STRING_FLAG_BITS_LEFT,4,2 ## @ASN1_STRING_FLAG_BITS_LEFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_ASN1_BIT_STRING            ; -- Begin function i2c_ASN1_BIT_STRING
	.p2align	2
_i2c_ASN1_BIT_STRING:                   ; @i2c_ASN1_BIT_STRING
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x1
	ldr	w20, [x0]
	cmp	w20, #1
	b.lt	LBB0_16
; %bb.2:
	ldr	w8, [x0, #4]
Lloh0:
	adrp	x9, _ASN1_STRING_FLAG_BITS_LEFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ASN1_STRING_FLAG_BITS_LEFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	and	w23, w8, #0x7
	b	LBB0_17
LBB0_4:
	mov	w21, #0
	b	LBB0_21
LBB0_5:
	ldr	x8, [x0, #8]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x20, #0
	b.le	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	x20, x20, #1
	ldr	w9, [x8, w20, uxtw #2]
	cbz	w9, LBB0_6
; %bb.8:
	add	w20, w20, #1
	b	LBB0_10
LBB0_9:
	mov	w20, #0
	ldr	x8, [x0, #8]
LBB0_10:
	sub	w9, w20, #1
	ldr	w8, [x8, w9, sxtw #2]
	tbnz	w8, #0, LBB0_16
; %bb.11:
	tbnz	w8, #1, LBB0_22
; %bb.12:
	tbnz	w8, #2, LBB0_23
; %bb.13:
	tbnz	w8, #3, LBB0_24
; %bb.14:
	tbnz	w8, #4, LBB0_25
; %bb.15:
	mov	w9, #5
	mov	w10, #6
	sbfx	w11, w8, #7, #1
	and	w11, w11, #0x7
	tst	w8, #0x40
	csel	w10, w10, w11, ne
	tst	w8, #0x20
	csel	w23, w9, w10, ne
	b	LBB0_17
LBB0_16:
	mov	w23, #0
LBB0_17:
	add	w21, w20, #1
	cbz	x19, LBB0_21
; %bb.18:
	ldr	x22, [x19]
	strb	w23, [x22], #1
	cmp	w20, #1
	b.lt	LBB0_20
; %bb.19:
	ldr	x1, [x0, #8]
	mov	x0, x22
	mov	x2, x20
	bl	_memcpy
	add	x22, x22, w20, uxtw
	mov	w8, #255
	lsl	w8, w8, w23
	ldurb	w9, [x22, #-1]
	and	w8, w9, w8
	sturb	w8, [x22, #-1]
LBB0_20:
	str	x22, [x19]
LBB0_21:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_22:
	mov	w23, #1
	b	LBB0_17
LBB0_23:
	mov	w23, #2
	b	LBB0_17
LBB0_24:
	mov	w23, #3
	b	LBB0_17
LBB0_25:
	mov	w23, #4
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_STRING_FLAG_BITS_LEFT,4,2 ; @ASN1_STRING_FLAG_BITS_LEFT
.subsections_via_symbols
