	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bn_expand_internal
_bn_expand_internal:                    ## @bn_expand_internal
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_BN_BITS2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$2, %ecx
	cltd
	idivl	%ecx
	cmpl	%esi, %eax
	jge	LBB0_3
## %bb.1:
	movq	_BN_F_BN_EXPAND_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BN_R_BIGNUM_TOO_LONG@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_BN_FLG_STATIC_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BN_get_flags
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_BN_F_BN_EXPAND_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BN_R_EXPAND_ON_STATIC_BIGNUM_DATA@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	callq	_BNerr
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_BN_FLG_SECURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_BN_get_flags
	leal	(,%r15,4), %edi
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	callq	_OPENSSL_secure_zalloc
	jmp	LBB0_8
LBB0_7:
	callq	_OPENSSL_zalloc
LBB0_8:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	xorl	%edi, %edi
	cmpl	%r15d, (%r14)
	setle	%dil
	callq	_assert
	movl	(%r14), %edx
	testl	%edx, %edx
	jle	LBB0_12
## %bb.11:
	movl	4(%r14), %esi
	shll	$2, %edx
	movq	%rbx, %rdi
	callq	_memcpy
	jmp	LBB0_12
LBB0_9:
	movq	_BN_F_BN_EXPAND_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_BN_BITS2,4,2                   ## @BN_BITS2
	.comm	_BN_F_BN_EXPAND_INTERNAL,4,2    ## @BN_F_BN_EXPAND_INTERNAL
	.comm	_BN_R_BIGNUM_TOO_LONG,4,2       ## @BN_R_BIGNUM_TOO_LONG
	.comm	_BN_FLG_STATIC_DATA,4,2         ## @BN_FLG_STATIC_DATA
	.comm	_BN_R_EXPAND_ON_STATIC_BIGNUM_DATA,4,2 ## @BN_R_EXPAND_ON_STATIC_BIGNUM_DATA
	.comm	_BN_FLG_SECURE,4,2              ## @BN_FLG_SECURE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_bn_expand_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bn_expand_internal
_bn_expand_internal:                    ; @bn_expand_internal
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BN_BITS2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BN_BITS2@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w9, w9, #2
	sdiv	w8, w8, w9
	cmp	w8, w1
	b.ge	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _BN_F_BN_EXPAND_INTERNAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BN_F_BN_EXPAND_INTERNAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _BN_R_BIGNUM_TOO_LONG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BN_R_BIGNUM_TOO_LONG@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x20, x1
	mov	x19, x0
Lloh11:
	adrp	x8, _BN_FLG_STATIC_DATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BN_FLG_STATIC_DATA@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_BN_get_flags
	cbz	x0, LBB0_6
; %bb.3:
Lloh14:
	adrp	x8, _BN_F_BN_EXPAND_INTERNAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BN_F_BN_EXPAND_INTERNAL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _BN_R_EXPAND_ON_STATIC_BIGNUM_DATA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BN_R_EXPAND_ON_STATIC_BIGNUM_DATA@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	bl	_BNerr
	mov	x21, #0
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh19:
	adrp	x8, _BN_FLG_SECURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BN_FLG_SECURE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BN_get_flags
	mov	x8, x0
	lsl	w0, w20, #2
	cbz	x8, LBB0_10
; %bb.7:
	bl	_OPENSSL_secure_zalloc
	mov	x21, x0
	cbz	x0, LBB0_11
LBB0_8:
	ldr	w8, [x19]
	cmp	w8, w20
	cset	w0, le
	bl	_assert
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.9:
	ldr	w1, [x19, #4]
	lsl	w2, w8, #2
	mov	x0, x21
	bl	_memcpy
	b	LBB0_5
LBB0_10:
	bl	_OPENSSL_zalloc
	mov	x21, x0
	cbnz	x0, LBB0_8
LBB0_11:
Lloh22:
	adrp	x8, _BN_F_BN_EXPAND_INTERNAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BN_F_BN_EXPAND_INTERNAL@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	bl	_BNerr
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_BN_BITS2,4,2                   ; @BN_BITS2
	.comm	_BN_F_BN_EXPAND_INTERNAL,4,2    ; @BN_F_BN_EXPAND_INTERNAL
	.comm	_BN_R_BIGNUM_TOO_LONG,4,2       ; @BN_R_BIGNUM_TOO_LONG
	.comm	_BN_FLG_STATIC_DATA,4,2         ; @BN_FLG_STATIC_DATA
	.comm	_BN_R_EXPAND_ON_STATIC_BIGNUM_DATA,4,2 ; @BN_R_EXPAND_ON_STATIC_BIGNUM_DATA
	.comm	_BN_FLG_SECURE,4,2              ; @BN_FLG_SECURE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_bn_expand_internal
.subsections_via_symbols
