	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CRYPT_SetBitInField
_CRYPT_SetBitInField:                   ## @CRYPT_SetBitInField
	.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, %r14d
	movq	%rdi, %rbx
	movq	_BITS_PER_DWORD@GOTPCREL(%rip), %r12
	movl	%esi, %eax
	cltd
	idivl	(%r12)
	movl	%eax, %r15d
	movl	(%rdi), %eax
	cmpl	%eax, %r15d
	jge	LBB0_1
## %bb.6:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	jne	LBB0_7
	jmp	LBB0_8
LBB0_1:
	leal	1(%r15), %r13d
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	8(%rbx), %rdi
	leal	(,%r13,4), %esi
	callq	_CryptMemRealloc
	jmp	LBB0_4
LBB0_3:
	movl	$4, %edi
	callq	_CryptMemAlloc
LBB0_4:
	movq	%rax, %rsi
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movslq	%r15d, %rax
	movl	$0, (%rsi,%rax,4)
	movl	%r13d, (%rbx)
LBB0_7:
	movl	%r14d, %eax
	cltd
	idivl	(%r12)
	movl	%edx, %ecx
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movslq	%r15d, %rcx
	orl	%eax, (%rsi,%rcx,4)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BITS_PER_DWORD,4,2             ## @BITS_PER_DWORD
	.no_dead_strip	_CRYPT_SetBitInField
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CRYPT_SetBitInField
_CRYPT_SetBitInField:                   ; @CRYPT_SetBitInField
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _BITS_PER_DWORD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BITS_PER_DWORD@GOTPAGEOFF]
	ldr	w8, [x22]
	sdiv	w21, w1, w8
	ldr	w8, [x0]
	cmp	w21, w8
	b.ge	LBB0_2
; %bb.1:
	ldr	x0, [x20, #8]
	cbnz	x0, LBB0_6
	b	LBB0_7
LBB0_2:
	add	w23, w21, #1
	cbz	w8, LBB0_4
; %bb.3:
	ldr	x0, [x20, #8]
	lsl	w1, w23, #2
	bl	_CryptMemRealloc
	str	x0, [x20, #8]
	cbnz	x0, LBB0_5
	b	LBB0_7
LBB0_4:
	mov	w0, #4
	bl	_CryptMemAlloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_7
LBB0_5:
	str	wzr, [x0, w21, sxtw #2]
	str	w23, [x20]
LBB0_6:
	ldr	w8, [x22]
	sdiv	w9, w19, w8
	msub	w8, w9, w8, w19
	mov	w9, #1
	lsl	w8, w9, w8
	sbfiz	x9, x21, #2, #32
	ldr	w10, [x0, x9]
	orr	w8, w10, w8
	str	w8, [x0, x9]
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BITS_PER_DWORD,4,2             ; @BITS_PER_DWORD
	.no_dead_strip	_CRYPT_SetBitInField
.subsections_via_symbols
