	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_mpi_set_bit            ## -- Begin function mbedtls_mpi_set_bit
	.p2align	4, 0x90
_mbedtls_mpi_set_bit:                   ## @mbedtls_mpi_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r14
	movq	_biL@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rsi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %r12
	movq	%rax, %r15
	cmpb	$2, %bl
	jae	LBB0_4
LBB0_5:
	imulq	(%r14), %rcx
	cmpq	%rsi, %rcx
	ja	LBB0_8
## %bb.6:
	testb	%bl, %bl
	je	LBB0_9
## %bb.7:
	leaq	1(%r15), %rsi
	movq	%r14, %rdi
	callq	_mbedtls_mpi_grow
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
LBB0_8:
	movq	8(%r14), %rax
	movq	(%rax,%r15,8), %rdx
	movzbl	%bl, %esi
	movl	%r12d, %ecx
	shlq	%cl, %rsi
	btrq	%r12, %rdx
	orq	%rdx, %rsi
	movq	%rsi, (%rax,%r15,8)
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_1:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r12d
	movl	%eax, %r15d
	cmpb	$2, %bl
	jb	LBB0_5
LBB0_4:
	movq	_MBEDTLS_ERR_MPI_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_biL,8,3                        ## @biL
	.comm	_MBEDTLS_ERR_MPI_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_MPI_BAD_INPUT_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_mpi_set_bit            ; -- Begin function mbedtls_mpi_set_bit
	.p2align	2
_mbedtls_mpi_set_bit:                   ; @mbedtls_mpi_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
	cmp	w2, #2
	b.hs	LBB0_5
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _biL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _biL@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	udiv	x22, x1, x23
	ldr	x8, [x0]
	mul	x8, x8, x23
	cmp	x8, x1
	b.hi	LBB0_4
; %bb.2:
	cbz	w19, LBB0_7
; %bb.3:
	add	x1, x22, #1
	mov	x0, x20
	bl	_mbedtls_mpi_grow
	bl	_MBEDTLS_MPI_CHK
LBB0_4:
	mov	w0, #0
	msub	x8, x22, x23, x21
	mov	w9, #1
	lsl	x9, x9, x8
	ldr	x10, [x20, #8]
	lsl	x11, x22, #3
	ldr	x12, [x10, x11]
	bic	x9, x12, x9
	mov	w12, w19
	lsl	x8, x12, x8
	orr	x8, x9, x8
	str	x8, [x10, x11]
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _MBEDTLS_ERR_MPI_BAD_INPUT_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ERR_MPI_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_6:
	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_7:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_biL,8,3                        ; @biL
	.comm	_MBEDTLS_ERR_MPI_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_MPI_BAD_INPUT_DATA
.subsections_via_symbols
