	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_swap
_test_swap:                             ## @test_swap
	.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	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_TEST_ptr
	testq	%rax, %rax
	je	LBB0_26
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TEST_ptr
	testq	%rax, %rax
	je	LBB0_27
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_TEST_ptr
	testq	%rax, %rax
	je	LBB0_28
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_TEST_ptr
	testq	%rax, %rax
	je	LBB0_29
## %bb.4:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_BN_bntest_rand
	movl	%eax, %edi
	callq	_TEST_true
	testq	%rax, %rax
	je	LBB0_29
## %bb.5:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_BN_bntest_rand
	movl	%eax, %edi
	callq	_TEST_true
	testq	%rax, %rax
	je	LBB0_29
## %bb.6:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_BN_copy
	movq	%rax, %rdi
	callq	_TEST_ptr
	testq	%rax, %rax
	je	LBB0_29
## %bb.7:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_BN_copy
	movq	%rax, %rdi
	callq	_TEST_ptr
	testq	%rax, %rax
	je	LBB0_29
## %bb.8:
	movq	%r14, %rdi
	callq	_BN_num_bits
	movq	_BN_BITS2@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_BN_swap
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_equalBN
	testl	%eax, %eax
	je	LBB0_29
## %bb.9:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_equalBN
	testl	%eax, %eax
	je	LBB0_29
## %bb.10:
	movl	$1, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_BN_consttime_swap
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_equalBN
	testl	%eax, %eax
	je	LBB0_29
## %bb.11:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_equalBN
	testl	%eax, %eax
	je	LBB0_29
## %bb.12:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_BN_consttime_swap
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_equalBN
	testl	%eax, %eax
	je	LBB0_29
## %bb.13:
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_equalBN
	testl	%eax, %eax
	je	LBB0_29
## %bb.14:
	movq	_BN_FLG_CONSTTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_BN_set_flags
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_BN_swap
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_equalBN
	testl	%eax, %eax
	je	LBB0_29
## %bb.15:
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_equalBN
	testl	%eax, %eax
	je	LBB0_29
## %bb.16:
	movq	_BN_FLG_CONSTTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_BN_get_flags
	movl	%eax, %edi
	callq	_TEST_true
	testq	%rax, %rax
	je	LBB0_29
## %bb.17:
	movq	_BN_FLG_CONSTTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_BN_get_flags
	movl	%eax, %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_29
## %bb.18:
	movl	$1, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_BN_consttime_swap
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_equalBN
	testl	%eax, %eax
	je	LBB0_29
## %bb.19:
	leaq	L_.str.4(%rip), %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_equalBN
	testl	%eax, %eax
	je	LBB0_29
## %bb.20:
	movq	_BN_FLG_CONSTTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_BN_get_flags
	movl	%eax, %edi
	callq	_TEST_true
	testq	%rax, %rax
	je	LBB0_29
## %bb.21:
	movq	_BN_FLG_CONSTTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_BN_get_flags
	movl	%eax, %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_29
## %bb.22:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_BN_consttime_swap
	leaq	L_.str.5(%rip), %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_equalBN
	testl	%eax, %eax
	je	LBB0_29
## %bb.23:
	leaq	L_.str.5(%rip), %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_equalBN
	testl	%eax, %eax
	je	LBB0_29
## %bb.24:
	movq	_BN_FLG_CONSTTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_BN_get_flags
	movl	%eax, %edi
	callq	_TEST_true
	testq	%rax, %rax
	je	LBB0_29
## %bb.25:
	movq	_BN_FLG_CONSTTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_BN_get_flags
	movl	%eax, %edi
	callq	_TEST_false
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setne	%bl
	jmp	LBB0_29
LBB0_26:
	xorl	%r15d, %r15d
LBB0_27:
	xorl	%r12d, %r12d
LBB0_28:
	xorl	%r13d, %r13d
LBB0_29:
	movq	%r14, %rdi
	callq	_BN_free
	movq	%r15, %rdi
	callq	_BN_free
	movq	%r12, %rdi
	callq	_BN_free
	movq	%r13, %rdi
	callq	_BN_free
	movl	%ebx, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"swap"

L_.str.1:                               ## @.str.1
	.asciz	"cswap true"

L_.str.2:                               ## @.str.2
	.asciz	"cswap false"

	.comm	_BN_FLG_CONSTTIME,4,2           ## @BN_FLG_CONSTTIME
L_.str.3:                               ## @.str.3
	.asciz	"swap, flags"

L_.str.4:                               ## @.str.4
	.asciz	"cswap true, flags"

L_.str.5:                               ## @.str.5
	.asciz	"cswap false, flags"

	.no_dead_strip	_test_swap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_swap
_test_swap:                             ; @test_swap
	.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	x0, LBB0_26
; %bb.1:
	bl	_BN_new
	mov	x20, x0
	bl	_TEST_ptr
	cbz	x0, LBB0_27
; %bb.2:
	bl	_BN_new
	mov	x21, x0
	bl	_TEST_ptr
	cbz	x0, LBB0_28
; %bb.3:
	bl	_BN_new
	mov	x22, x0
	bl	_TEST_ptr
	cbz	x0, LBB0_29
; %bb.4:
	mov	x0, x19
	mov	w1, #1024
	mov	w2, #1
	mov	w3, #0
	bl	_BN_bntest_rand
	bl	_TEST_true
	cbz	x0, LBB0_29
; %bb.5:
	mov	x0, x20
	mov	w1, #1024
	mov	w2, #1
	mov	w3, #0
	bl	_BN_bntest_rand
	bl	_TEST_true
	cbz	x0, LBB0_29
; %bb.6:
	mov	x0, x21
	mov	x1, x19
	bl	_BN_copy
	bl	_TEST_ptr
	cbz	x0, LBB0_29
; %bb.7:
	mov	x0, x22
	mov	x1, x20
	bl	_BN_copy
	bl	_TEST_ptr
	cbz	x0, LBB0_29
; %bb.8:
	mov	x0, x19
	bl	_BN_num_bits
	mov	x23, x0
Lloh0:
	adrp	x8, _BN_BITS2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BN_BITS2@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_BN_swap
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x22
	bl	_equalBN
	cbz	w0, LBB0_29
; %bb.9:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_equalBN
	cbz	w0, LBB0_29
; %bb.10:
	sdiv	w23, w23, w24
	mov	w0, #1
	mov	x1, x19
	mov	x2, x20
	mov	x3, x23
	bl	_BN_consttime_swap
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	bl	_equalBN
	cbz	w0, LBB0_29
; %bb.11:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x22
	bl	_equalBN
	cbz	w0, LBB0_29
; %bb.12:
	mov	w0, #0
	mov	x1, x19
	mov	x2, x20
	mov	x3, x23
	bl	_BN_consttime_swap
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	bl	_equalBN
	cbz	w0, LBB0_29
; %bb.13:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	mov	x2, x22
	bl	_equalBN
	cbz	w0, LBB0_29
; %bb.14:
Lloh15:
	adrp	x24, _BN_FLG_CONSTTIME@GOTPAGE
Lloh16:
	ldr	x24, [x24, _BN_FLG_CONSTTIME@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_BN_set_flags
	mov	x0, x19
	mov	x1, x20
	bl	_BN_swap
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	mov	x2, x22
	bl	_equalBN
	cbz	w0, LBB0_29
; %bb.15:
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_equalBN
	cbz	w0, LBB0_29
; %bb.16:
	ldr	w1, [x24]
	mov	x0, x20
	bl	_BN_get_flags
	bl	_TEST_true
	cbz	x0, LBB0_29
; %bb.17:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_BN_get_flags
	bl	_TEST_false
	cbz	w0, LBB0_29
; %bb.18:
	mov	w0, #1
	mov	x1, x19
	mov	x2, x20
	mov	x3, x23
	bl	_BN_consttime_swap
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	bl	_equalBN
	cbz	w0, LBB0_29
; %bb.19:
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	mov	x2, x22
	bl	_equalBN
	cbz	w0, LBB0_29
; %bb.20:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_BN_get_flags
	bl	_TEST_true
	cbz	x0, LBB0_29
; %bb.21:
	ldr	w1, [x24]
	mov	x0, x20
	bl	_BN_get_flags
	bl	_TEST_false
	cbz	w0, LBB0_29
; %bb.22:
	mov	w0, #0
	mov	x1, x19
	mov	x2, x20
	mov	x3, x23
	bl	_BN_consttime_swap
Lloh25:
	adrp	x0, l_.str.5@PAGE
Lloh26:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	bl	_equalBN
	cbz	w0, LBB0_29
; %bb.23:
Lloh27:
	adrp	x0, l_.str.5@PAGE
Lloh28:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x20
	mov	x2, x22
	bl	_equalBN
	cbz	w0, LBB0_29
; %bb.24:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_BN_get_flags
	bl	_TEST_true
	cbz	x0, LBB0_29
; %bb.25:
	ldr	w1, [x24]
	mov	x0, x20
	bl	_BN_get_flags
	bl	_TEST_false
	cmp	w0, #0
	cset	w23, ne
	b	LBB0_30
LBB0_26:
	mov	x20, #0
LBB0_27:
	mov	x21, #0
LBB0_28:
	mov	x22, #0
LBB0_29:
	mov	w23, #0
LBB0_30:
	mov	x0, x19
	bl	_BN_free
	mov	x0, x20
	bl	_BN_free
	mov	x0, x21
	bl	_BN_free
	mov	x0, x22
	bl	_BN_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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_BN_BITS2,4,2                   ; @BN_BITS2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"swap"

l_.str.1:                               ; @.str.1
	.asciz	"cswap true"

l_.str.2:                               ; @.str.2
	.asciz	"cswap false"

	.comm	_BN_FLG_CONSTTIME,4,2           ; @BN_FLG_CONSTTIME
l_.str.3:                               ; @.str.3
	.asciz	"swap, flags"

l_.str.4:                               ; @.str.4
	.asciz	"cswap true, flags"

l_.str.5:                               ; @.str.5
	.asciz	"cswap false, flags"

	.no_dead_strip	_test_swap
.subsections_via_symbols
