	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_set_bit                     ## -- Begin function BN_set_bit
	.p2align	4, 0x90
_BN_set_bit:                            ## @BN_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
	xorl	%r12d, %r12d
	testl	%esi, %esi
	js	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	_BN_BITS2@GOTPCREL(%rip), %rcx
	movl	%esi, %eax
	cltd
	idivl	(%rcx)
	movl	%edx, %r15d
	movl	%eax, %r14d
	cmpl	%eax, (%rdi)
	jg	LBB0_6
## %bb.2:
	leal	1(%r14), %r13d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_bn_wexpand
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movslq	(%rbx), %rax
	cmpl	%eax, %r14d
	jl	LBB0_5
## %bb.4:
	movq	%rax, %rdi
	shlq	$2, %rdi
	addq	8(%rbx), %rdi
	movl	%r14d, %ecx
	subl	%eax, %ecx
	leaq	4(,%rcx,4), %rsi
	callq	___bzero
LBB0_5:
	movl	%r13d, (%rbx)
	movq	_BN_FLG_FIXED_TOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 16(%rbx)
LBB0_6:
	movl	$1, %r12d
	movl	$1, %eax
	movl	%r15d, %ecx
	shll	%cl, %eax
	movq	8(%rbx), %rcx
	movslq	%r14d, %rdx
	orl	%eax, (%rcx,%rdx,4)
	movq	%rbx, %rdi
	callq	_bn_check_top
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BN_BITS2,4,2                   ## @BN_BITS2
	.comm	_BN_FLG_FIXED_TOP,4,2           ## @BN_FLG_FIXED_TOP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_set_bit                     ; -- Begin function BN_set_bit
	.p2align	2
_BN_set_bit:                            ; @BN_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
	tbnz	w1, #31, LBB0_7
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _BN_BITS2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BN_BITS2@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	sdiv	w22, w1, w23
	ldr	w8, [x0]
	cmp	w8, w22
	b.gt	LBB0_6
; %bb.2:
	add	w21, w22, #1
	mov	x0, x19
	mov	x1, x21
	bl	_bn_wexpand
	cbz	x0, LBB0_7
; %bb.3:
	ldrsw	x8, [x19]
	cmp	w22, w8
	b.lt	LBB0_5
; %bb.4:
	ldr	x9, [x19, #8]
	add	x0, x9, x8, lsl #2
	sub	w8, w22, w8
	lsl	x8, x8, #2
	add	x1, x8, #4
	bl	_bzero
LBB0_5:
	str	w21, [x19]
Lloh3:
	adrp	x8, _BN_FLG_FIXED_TOP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BN_FLG_FIXED_TOP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	bic	w8, w9, w8
	str	w8, [x19, #16]
LBB0_6:
	msub	w8, w22, w23, w20
	mov	w20, #1
	lsl	w8, w20, w8
	ldr	x9, [x19, #8]
	sbfiz	x10, x22, #2, #32
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
	mov	x0, x19
	bl	_bn_check_top
	b	LBB0_8
LBB0_7:
	mov	w20, #0
LBB0_8:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BN_BITS2,4,2                   ; @BN_BITS2
	.comm	_BN_FLG_FIXED_TOP,4,2           ; @BN_FLG_FIXED_TOP
.subsections_via_symbols
