	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_badmod
_test_badmod:                           ## @test_badmod
	.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	%r13d, %r13d
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_16
## %bb.1:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_17
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_18
## %bb.3:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_BN_MONT_CTX_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_19
## %bb.4:
	movq	%r12, %rdi
	callq	_BN_zero
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_BN_value_one
	movq	_ctx@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	movq	%r12, %rcx
	callq	_BN_div
	movl	%eax, %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_19
## %bb.5:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_ERR_clear_error
	xorl	%eax, %eax
	callq	_BN_value_one
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_BN_value_one
	movq	_ctx@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movq	%r12, %rcx
	callq	_BN_mod_mul
	movl	%eax, %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_15
## %bb.6:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_ERR_clear_error
	xorl	%eax, %eax
	callq	_BN_value_one
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_BN_value_one
	movq	_ctx@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movq	%r12, %rcx
	callq	_BN_mod_exp
	movl	%eax, %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_15
## %bb.7:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_ERR_clear_error
	xorl	%eax, %eax
	callq	_BN_value_one
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_BN_value_one
	movq	_ctx@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movq	%r12, %rcx
	xorl	%r9d, %r9d
	callq	_BN_mod_exp_mont
	movl	%eax, %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_15
## %bb.8:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_ERR_clear_error
	xorl	%eax, %eax
	callq	_BN_value_one
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_BN_value_one
	movq	_ctx@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movq	%r12, %rcx
	xorl	%r9d, %r9d
	callq	_BN_mod_exp_mont_consttime
	movl	%eax, %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_15
## %bb.9:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_ERR_clear_error
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_BN_MONT_CTX_set
	movl	%eax, %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_19
## %bb.10:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_ERR_clear_error
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_BN_set_word
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_19
## %bb.11:
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_BN_MONT_CTX_set
	movl	%eax, %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_19
## %bb.12:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_ERR_clear_error
	xorl	%eax, %eax
	callq	_BN_value_one
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_BN_value_one
	movq	_ctx@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movq	%r14, %rcx
	xorl	%r9d, %r9d
	callq	_BN_mod_exp_mont
	movl	%eax, %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_ERR_clear_error
	xorl	%eax, %eax
	callq	_BN_value_one
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_BN_value_one
	movq	_ctx@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movq	%r14, %rcx
	xorl	%r9d, %r9d
	callq	_BN_mod_exp_mont_consttime
	movl	%eax, %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	xorl	%eax, %eax
	callq	_ERR_clear_error
	movl	$1, %r13d
LBB0_15:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_16:
	xorl	%r14d, %r14d
LBB0_17:
	xorl	%r12d, %r12d
LBB0_18:
	xorl	%ebx, %ebx
LBB0_19:
	movq	%r15, %rdi
	callq	_BN_free
	movq	%r14, %rdi
	callq	_BN_free
	movq	%r12, %rdi
	callq	_BN_free
	movq	%rbx, %rdi
	callq	_BN_MONT_CTX_free
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ctx,4,2                        ## @ctx
	.no_dead_strip	_test_badmod
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_badmod
_test_badmod:                           ; @test_badmod
	.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
	bl	_BN_new
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_15
; %bb.1:
	bl	_BN_new
	mov	x20, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_16
; %bb.2:
	bl	_BN_new
	mov	x21, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_17
; %bb.3:
	bl	_BN_MONT_CTX_new
	mov	x22, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_18
; %bb.4:
	mov	x0, x21
	bl	_BN_zero
	bl	_BN_value_one
	mov	x2, x0
Lloh0:
	adrp	x24, _ctx@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ctx@GOTPAGEOFF]
	ldr	w4, [x24]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	_BN_div
	bl	_TEST_false
	cbz	w0, LBB0_18
; %bb.5:
	bl	_ERR_clear_error
	bl	_BN_value_one
	mov	x23, x0
	bl	_BN_value_one
	mov	x2, x0
	ldr	w4, [x24]
	mov	x0, x19
	mov	x1, x23
	mov	x3, x21
	bl	_BN_mod_mul
	bl	_TEST_false
	cbz	w0, LBB0_18
; %bb.6:
	bl	_ERR_clear_error
	bl	_BN_value_one
	mov	x23, x0
	bl	_BN_value_one
	mov	x2, x0
	ldr	w4, [x24]
	mov	x0, x19
	mov	x1, x23
	mov	x3, x21
	bl	_BN_mod_exp
	bl	_TEST_false
	cbz	w0, LBB0_18
; %bb.7:
	bl	_ERR_clear_error
	bl	_BN_value_one
	mov	x23, x0
	bl	_BN_value_one
	mov	x2, x0
	ldr	w4, [x24]
	mov	x0, x19
	mov	x1, x23
	mov	x3, x21
	mov	x5, #0
	bl	_BN_mod_exp_mont
	bl	_TEST_false
	cbz	w0, LBB0_18
; %bb.8:
	bl	_ERR_clear_error
	bl	_BN_value_one
	mov	x23, x0
	bl	_BN_value_one
	mov	x2, x0
	ldr	w4, [x24]
	mov	x0, x19
	mov	x1, x23
	mov	x3, x21
	mov	x5, #0
	bl	_BN_mod_exp_mont_consttime
	bl	_TEST_false
	cbz	w0, LBB0_18
; %bb.9:
	bl	_ERR_clear_error
	ldr	w2, [x24]
	mov	x0, x22
	mov	x1, x21
	bl	_BN_MONT_CTX_set
	bl	_TEST_false
	cbz	w0, LBB0_18
; %bb.10:
	bl	_ERR_clear_error
	mov	x0, x20
	mov	w1, #16
	bl	_BN_set_word
	bl	_TEST_true
	cbz	w0, LBB0_18
; %bb.11:
	ldr	w2, [x24]
	mov	x0, x22
	mov	x1, x20
	bl	_BN_MONT_CTX_set
	bl	_TEST_false
	cbz	w0, LBB0_18
; %bb.12:
	bl	_ERR_clear_error
	bl	_BN_value_one
	mov	x23, x0
	bl	_BN_value_one
	mov	x2, x0
	ldr	w4, [x24]
	mov	x0, x19
	mov	x1, x23
	mov	x3, x20
	mov	x5, #0
	bl	_BN_mod_exp_mont
	bl	_TEST_false
	cbz	w0, LBB0_18
; %bb.13:
	bl	_ERR_clear_error
	bl	_BN_value_one
	mov	x23, x0
	bl	_BN_value_one
	mov	x2, x0
	ldr	w4, [x24]
	mov	x0, x19
	mov	x1, x23
	mov	x3, x20
	mov	x5, #0
	bl	_BN_mod_exp_mont_consttime
	bl	_TEST_false
	cbz	w0, LBB0_18
; %bb.14:
	bl	_ERR_clear_error
	mov	w23, #1
	b	LBB0_19
LBB0_15:
	mov	x20, #0
LBB0_16:
	mov	x21, #0
LBB0_17:
	mov	x22, #0
LBB0_18:
	mov	w23, #0
LBB0_19:
	mov	x0, x19
	bl	_BN_free
	mov	x0, x20
	bl	_BN_free
	mov	x0, x21
	bl	_BN_free
	mov	x0, x22
	bl	_BN_MONT_CTX_free
	mov	x0, x23
	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	_ctx,4,2                        ; @ctx
	.no_dead_strip	_test_badmod
.subsections_via_symbols
