	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ASN1_BIT_STRING_set_bit        ## -- Begin function ASN1_BIT_STRING_set_bit
	.p2align	4, 0x90
_ASN1_BIT_STRING_set_bit:               ## @ASN1_BIT_STRING_set_bit
	.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
	movl	%esi, %ecx
	leal	7(%rcx), %r13d
	testl	%esi, %esi
	cmovnsl	%esi, %r13d
	notb	%cl
	andb	$7, %cl
	movl	$1, %r12d
	shll	%cl, %r12d
	movl	$-2, %r14d
                                        ## kill: def $cl killed $cl killed $rcx
	roll	%cl, %r14d
	testl	%edx, %edx
	cmovel	%edx, %r12d
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rdi, %rbx
	sarl	$3, %r13d
	movq	_ASN1_STRING_FLAG_BITS_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%rdi), %eax
	andl	$-8, %eax
	movl	%eax, (%rdi)
	movl	4(%rdi), %esi
	cmpl	%r13d, %esi
	jle	LBB0_3
## %bb.2:
	movq	8(%rbx), %r15
	testq	%r15, %r15
	jne	LBB0_10
LBB0_3:
	testl	%edx, %edx
	je	LBB0_4
## %bb.5:
	leal	1(%r13), %edx
	movq	8(%rbx), %rdi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_OPENSSL_clear_realloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movslq	4(%rbx), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %edx
	subl	%eax, %edx
	jle	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	addq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
LBB0_9:
	movq	%r15, 8(%rbx)
	movl	%ecx, 4(%rbx)
LBB0_10:
	movslq	%r13d, %rax
	movzbl	(%r15,%rax), %ecx
	andl	%r14d, %ecx
	orl	%r12d, %ecx
	movb	%cl, (%r15,%rax)
	movl	4(%rbx), %edi
	movl	$1, %eax
	testl	%edi, %edi
	jle	LBB0_14
## %bb.11:
	movq	8(%rbx), %rcx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	leaq	-1(%rdi), %rdx
	movl	%edx, %esi
	cmpb	$0, (%rcx,%rsi)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	decl	%edi
	movl	%edi, 4(%rbx)
	leaq	1(%rdx), %rsi
	movq	%rdx, %rdi
	cmpq	$1, %rsi
	ja	LBB0_12
	jmp	LBB0_14
LBB0_4:
	movl	$1, %eax
	jmp	LBB0_14
LBB0_6:
	movq	_ASN1_F_ASN1_BIT_STRING_SET_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASN1err
	xorl	%eax, %eax
LBB0_14:
	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
	.comm	_ASN1_F_ASN1_BIT_STRING_SET_BIT,4,2 ## @ASN1_F_ASN1_BIT_STRING_SET_BIT
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ASN1_BIT_STRING_set_bit        ; -- Begin function ASN1_BIT_STRING_set_bit
	.p2align	2
_ASN1_BIT_STRING_set_bit:               ; @ASN1_BIT_STRING_set_bit
	.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
	mvn	w9, w1
	add	w8, w1, #7
	cmp	w1, #0
	csel	w8, w8, w1, lt
	and	w9, w9, #0x7
	mov	w10, #1
	lsl	w23, w10, w9
	cmp	w2, #0
	csel	w22, wzr, w23, eq
	cbz	x0, LBB0_13
; %bb.1:
	mov	x19, x0
	asr	w24, w8, #3
Lloh0:
	adrp	x8, _ASN1_STRING_FLAG_BITS_LEFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_STRING_FLAG_BITS_LEFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w1, [x0]
	bic	w8, w9, w8
	and	w8, w8, #0xfffffff8
	str	w8, [x0]
	cmp	w1, w24
	b.le	LBB0_3
; %bb.2:
	ldr	x20, [x19, #8]
	cbnz	x20, LBB0_8
LBB0_3:
	cbz	w2, LBB0_12
; %bb.4:
	add	w21, w24, #1
	ldr	x0, [x19, #8]
	mov	x2, x21
	bl	_OPENSSL_clear_realloc
	cbz	x0, LBB0_14
; %bb.5:
	mov	x20, x0
	ldrsw	x8, [x19, #4]
	sub	w2, w21, w8
	cmp	w2, #1
	b.lt	LBB0_7
; %bb.6:
	add	x0, x20, x8
	mov	w1, #0
	bl	_memset
LBB0_7:
	str	x20, [x19, #8]
	str	w21, [x19, #4]
LBB0_8:
	mvn	w8, w23
	sxtw	x9, w24
	ldrb	w10, [x20, x9]
	and	w8, w10, w8
	orr	w8, w8, w22
	strb	w8, [x20, x9]
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.9:
	ldr	x9, [x19, #8]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sub	x10, x8, #1
	ldrb	w11, [x9, w10, uxtw]
	cbnz	w11, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	sub	w8, w8, #1
	str	w8, [x19, #4]
	add	x11, x10, #1
	mov	x8, x10
	cmp	x11, #1
	b.hi	LBB0_10
LBB0_12:
	mov	w0, #1
LBB0_13:
	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_14:
Lloh3:
	adrp	x8, _ASN1_F_ASN1_BIT_STRING_SET_BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASN1_F_ASN1_BIT_STRING_SET_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_ASN1err
	mov	w0, #0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_STRING_FLAG_BITS_LEFT,4,2 ; @ASN1_STRING_FLAG_BITS_LEFT
	.comm	_ASN1_F_ASN1_BIT_STRING_SET_BIT,4,2 ; @ASN1_F_ASN1_BIT_STRING_SET_BIT
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
.subsections_via_symbols
