	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bf_setkey
_bf_setkey:                             ## @bf_setkey
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_crypto_tfm_ctx
	movq	(%rax), %r13
	movq	%rax, %r9
	movq	8(%rax), %r14
	movq	_bf_sbox@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rcx), %edx
	movl	%edx, (%r14,%rcx)
	movl	4(%rax,%rcx), %edx
	movl	%edx, 4(%r14,%rcx)
	movl	8(%rax,%rcx), %edx
	movl	%edx, 8(%r14,%rcx)
	movl	12(%rax,%rcx), %edx
	movl	%edx, 12(%r14,%rcx)
	addq	$16, %rcx
	movzwl	%cx, %edx
	cmpl	$4096, %edx                     ## imm = 0x1000
	jne	LBB0_1
## %bb.2:
	movq	_bf_pbox@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %r8d
	movl	%r8d, (%r13)
	movl	4(%rax), %ecx
	movl	%ecx, 4(%r13)
	movl	8(%rax), %ecx
	movl	%ecx, 8(%r13)
	movl	12(%rax), %ecx
	movl	%ecx, 12(%r13)
	movl	16(%rax), %ecx
	movl	%ecx, 16(%r13)
	movl	20(%rax), %ecx
	movl	%ecx, 20(%r13)
	movl	24(%rax), %ecx
	movl	%ecx, 24(%r13)
	movl	28(%rax), %ecx
	movl	%ecx, 28(%r13)
	movl	32(%rax), %ecx
	movl	%ecx, 32(%r13)
	movl	36(%rax), %ecx
	movl	%ecx, 36(%r13)
	movl	40(%rax), %ecx
	movl	%ecx, 40(%r13)
	movl	44(%rax), %ecx
	movl	%ecx, 44(%r13)
	movl	48(%rax), %ecx
	movl	%ecx, 48(%r13)
	movl	52(%rax), %ecx
	movl	%ecx, 52(%r13)
	movl	56(%rax), %ecx
	movl	%ecx, 56(%r13)
	movl	60(%rax), %ecx
	movl	%ecx, 60(%r13)
	movl	64(%rax), %ecx
	movl	%ecx, 64(%r13)
	movl	68(%rax), %eax
	movl	%eax, 68(%r13)
	movl	$1, %edi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movswq	%dx, %rax
	movl	(%r12,%rax,8), %ebx
	shll	$24, %ebx
	movswl	%ax, %ecx
	leal	1(%rcx), %eax
	xorl	%edx, %edx
	divl	%r15d
                                        ## kill: def $edx killed $edx def $rdx
	movl	(%r12,%rdx,8), %esi
	shll	$16, %esi
	orl	%ebx, %esi
	leal	2(%rcx), %eax
	xorl	%edx, %edx
	divl	%r15d
                                        ## kill: def $edx killed $edx def $rdx
	movl	(%r12,%rdx,8), %ebx
	shll	$8, %ebx
	orl	%esi, %ebx
	leal	3(%rcx), %eax
	xorl	%edx, %edx
	divl	%r15d
                                        ## kill: def $edx killed $edx def $rdx
	orl	(%r12,%rdx,8), %ebx
	xorl	%r8d, %ebx
	movl	%ebx, -4(%r13,%rdi,4)
	cmpq	$18, %rdi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	$4, %ecx
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%r15d
	movl	(%r13,%rdi,4), %r8d
	incq	%rdi
	jmp	LBB0_3
LBB0_5:
	movq	$0, -56(%rbp)
	leaq	-56(%rbp), %r15
	movq	%r9, %rbx
	movq	%r9, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_encrypt_block
	movl	-56(%rbp), %eax
	movl	%eax, (%r13)
	movl	-52(%rbp), %eax
	movl	%eax, 4(%r13)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_encrypt_block
	movl	-56(%rbp), %eax
	movl	%eax, 8(%r13)
	movl	-52(%rbp), %eax
	movl	%eax, 12(%r13)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_encrypt_block
	movl	-56(%rbp), %eax
	movl	%eax, 16(%r13)
	movl	-52(%rbp), %eax
	movl	%eax, 20(%r13)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_encrypt_block
	movl	-56(%rbp), %eax
	movl	%eax, 24(%r13)
	movl	-52(%rbp), %eax
	movl	%eax, 28(%r13)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_encrypt_block
	movl	-56(%rbp), %eax
	movl	%eax, 32(%r13)
	movl	-52(%rbp), %eax
	movl	%eax, 36(%r13)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_encrypt_block
	movl	-56(%rbp), %eax
	movl	%eax, 40(%r13)
	movl	-52(%rbp), %eax
	movl	%eax, 44(%r13)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_encrypt_block
	movl	-56(%rbp), %eax
	movl	%eax, 48(%r13)
	movl	-52(%rbp), %eax
	movl	%eax, 52(%r13)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_encrypt_block
	movl	-56(%rbp), %eax
	movl	%eax, 56(%r13)
	movl	-52(%rbp), %eax
	movl	%eax, 60(%r13)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_encrypt_block
	movl	-56(%rbp), %eax
	movl	%eax, 64(%r13)
	movl	-52(%rbp), %eax
	movl	%eax, 68(%r13)
	movq	%rbx, %r13
	leaq	4(%r14), %rbx
	movl	$-131072, %r12d                 ## imm = 0xFFFE0000
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_encrypt_block
	movl	-56(%rbp), %eax
	movl	%eax, -4(%rbx)
	movl	-52(%rbp), %eax
	movl	%eax, (%rbx)
	addq	$8, %rbx
	addl	$131072, %r12d                  ## imm = 0x20000
	cmpl	$16646144, %r12d                ## imm = 0xFE0000
	jb	LBB0_6
## %bb.7:
	leaq	1028(%r14), %rbx
	movl	$-131072, %r12d                 ## imm = 0xFFFE0000
	leaq	-56(%rbp), %r15
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_encrypt_block
	movl	-56(%rbp), %eax
	movl	%eax, -4(%rbx)
	movl	-52(%rbp), %eax
	movl	%eax, (%rbx)
	addq	$8, %rbx
	addl	$131072, %r12d                  ## imm = 0x20000
	cmpl	$16646144, %r12d                ## imm = 0xFE0000
	jb	LBB0_8
## %bb.9:
	leaq	2052(%r14), %rbx
	movl	$-131072, %r12d                 ## imm = 0xFFFE0000
	leaq	-56(%rbp), %r15
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_encrypt_block
	movl	-56(%rbp), %eax
	movl	%eax, -4(%rbx)
	movl	-52(%rbp), %eax
	movl	%eax, (%rbx)
	addq	$8, %rbx
	addl	$131072, %r12d                  ## imm = 0x20000
	cmpl	$16646144, %r12d                ## imm = 0xFE0000
	jb	LBB0_10
## %bb.11:
	addq	$3076, %r14                     ## imm = 0xC04
	movl	$-131072, %ebx                  ## imm = 0xFFFE0000
	leaq	-56(%rbp), %r15
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_encrypt_block
	movl	-56(%rbp), %eax
	movl	%eax, -4(%r14)
	movl	-52(%rbp), %eax
	movl	%eax, (%r14)
	addq	$8, %r14
	addl	$131072, %ebx                   ## imm = 0x20000
	cmpl	$16646144, %ebx                 ## imm = 0xFE0000
	jb	LBB0_12
## %bb.13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_bf_sbox,8,3                    ## @bf_sbox
	.comm	_bf_pbox,8,3                    ## @bf_pbox
	.no_dead_strip	_bf_setkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bf_setkey
_bf_setkey:                             ; @bf_setkey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	bl	_crypto_tfm_ctx
	mov	x19, x0
Lloh0:
	adrp	x8, _bf_sbox@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bf_sbox@GOTPAGEOFF]
	ldp	x23, x22, [x0]
Lloh2:
	ldr	x8, [x8]
	add	x9, x22, #1, lsl #12            ; =4096
	add	x10, x8, #1, lsl #12            ; =4096
	cmp	x22, x10
	ccmp	x8, x9, #2, lo
	b.lo	LBB0_3
; %bb.1:
	mov	x9, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x8, x9
	ldp	q1, q0, [x10]
	ldp	q3, q2, [x10, #32]
	add	x10, x22, x9
	stp	q3, q2, [x10, #32]
	stp	q1, q0, [x10]
	add	x9, x9, #64
	cmp	x9, #1, lsl #12                 ; =4096
	b.ne	LBB0_2
	b	LBB0_5
LBB0_3:
	mov	w10, #0
	add	x8, x8, #8
	add	x9, x22, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x8, #-8]
	stur	w11, [x9, #-8]
	ldur	w11, [x8, #-4]
	stur	w11, [x9, #-4]
	ldr	w11, [x8]
	str	w11, [x9]
	ldr	w11, [x8, #4]
	str	w11, [x9, #4]
	add	w11, w10, #1
	add	x8, x8, #16
	add	x9, x9, #16
	cmp	w10, #255
	mov	x10, x11
	b.lo	LBB0_4
LBB0_5:
	mov	x8, #0
	mov	w10, #0
Lloh3:
	adrp	x9, _bf_pbox@GOTPAGE
Lloh4:
	ldr	x9, [x9, _bf_pbox@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x9]
	ldr	w9, [x11]
	str	w9, [x23]
	ldr	w12, [x11, #4]
	str	w12, [x23, #4]
	ldr	w12, [x11, #8]
	str	w12, [x23, #8]
	ldr	w12, [x11, #12]
	str	w12, [x23, #12]
	ldr	w12, [x11, #16]
	str	w12, [x23, #16]
	ldr	w12, [x11, #20]
	str	w12, [x23, #20]
	ldr	w12, [x11, #24]
	str	w12, [x23, #24]
	ldr	w12, [x11, #28]
	str	w12, [x23, #28]
	ldr	w12, [x11, #32]
	str	w12, [x23, #32]
	ldr	w12, [x11, #36]
	str	w12, [x23, #36]
	ldr	w12, [x11, #40]
	str	w12, [x23, #40]
	ldr	w12, [x11, #44]
	str	w12, [x23, #44]
	ldr	w12, [x11, #48]
	str	w12, [x23, #48]
	ldr	w12, [x11, #52]
	str	w12, [x23, #52]
	ldr	w12, [x11, #56]
	str	w12, [x23, #56]
	ldr	w12, [x11, #60]
	str	w12, [x23, #60]
	ldr	w12, [x11, #64]
	str	w12, [x23, #64]
	ldr	w11, [x11, #68]
	str	w11, [x23, #68]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sxth	x11, w10
	ldr	x11, [x21, x11, lsl #3]
	sxth	w10, w10
	add	w12, w10, #1
	udiv	w13, w12, w20
	msub	w12, w13, w20, w12
	ldr	x12, [x21, w12, uxtw #3]
	lsl	w12, w12, #16
	orr	w11, w12, w11, lsl #24
	add	w12, w10, #2
	udiv	w13, w12, w20
	msub	w12, w13, w20, w12
	add	w13, w10, #3
	udiv	w14, w13, w20
	msub	w13, w14, w20, w13
	ldr	x12, [x21, w12, uxtw #3]
	ldr	x13, [x21, w13, uxtw #3]
	orr	w11, w11, w12, lsl #8
	orr	w11, w11, w13
	eor	w9, w11, w9
	str	w9, [x23, x8]
	cmp	x8, #68
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w9, w10, #4
	udiv	w10, w9, w20
	msub	w10, w10, w20, w9
	add	x9, x23, x8
	ldr	w9, [x9, #4]
	add	x8, x8, #4
	b	LBB0_6
LBB0_8:
	str	xzr, [sp, #8]
	add	x1, sp, #8
	add	x2, sp, #8
	mov	x0, x19
	bl	_encrypt_block
	ldr	w8, [sp, #8]
	str	w8, [x23]
	ldr	w8, [sp, #12]
	str	w8, [x23, #4]
	add	x1, sp, #8
	add	x2, sp, #8
	mov	x0, x19
	bl	_encrypt_block
	ldr	d0, [sp, #8]
	str	d0, [x23, #8]
	add	x1, sp, #8
	add	x2, sp, #8
	mov	x0, x19
	bl	_encrypt_block
	ldr	d0, [sp, #8]
	str	d0, [x23, #16]
	add	x1, sp, #8
	add	x2, sp, #8
	mov	x0, x19
	bl	_encrypt_block
	ldr	d0, [sp, #8]
	str	d0, [x23, #24]
	add	x1, sp, #8
	add	x2, sp, #8
	mov	x0, x19
	bl	_encrypt_block
	ldr	d0, [sp, #8]
	str	d0, [x23, #32]
	add	x1, sp, #8
	add	x2, sp, #8
	mov	x0, x19
	bl	_encrypt_block
	ldr	d0, [sp, #8]
	str	d0, [x23, #40]
	add	x1, sp, #8
	add	x2, sp, #8
	mov	x0, x19
	bl	_encrypt_block
	ldr	d0, [sp, #8]
	str	d0, [x23, #48]
	add	x1, sp, #8
	add	x2, sp, #8
	mov	x0, x19
	bl	_encrypt_block
	ldr	d0, [sp, #8]
	str	d0, [x23, #56]
	add	x1, sp, #8
	add	x2, sp, #8
	mov	x0, x19
	bl	_encrypt_block
	ldr	d0, [sp, #8]
	str	d0, [x23, #64]
	add	x20, x22, #4
	mov	w21, #-131072
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	add	x2, sp, #8
	mov	x0, x19
	bl	_encrypt_block
	ldr	w8, [sp, #8]
	stur	w8, [x20, #-4]
	ldr	w8, [sp, #12]
	str	w8, [x20], #8
	add	w21, w21, #32, lsl #12          ; =131072
	cmp	w21, #4064, lsl #12             ; =16646144
	b.lo	LBB0_9
; %bb.10:
	add	x20, x22, #1028
	mov	w21, #-131072
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	add	x2, sp, #8
	mov	x0, x19
	bl	_encrypt_block
	ldr	w8, [sp, #8]
	stur	w8, [x20, #-4]
	ldr	w8, [sp, #12]
	str	w8, [x20], #8
	add	w21, w21, #32, lsl #12          ; =131072
	cmp	w21, #4064, lsl #12             ; =16646144
	b.lo	LBB0_11
; %bb.12:
	add	x20, x22, #2052
	mov	w21, #-131072
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	add	x2, sp, #8
	mov	x0, x19
	bl	_encrypt_block
	ldr	w8, [sp, #8]
	stur	w8, [x20, #-4]
	ldr	w8, [sp, #12]
	str	w8, [x20], #8
	add	w21, w21, #32, lsl #12          ; =131072
	cmp	w21, #4064, lsl #12             ; =16646144
	b.lo	LBB0_13
; %bb.14:
	add	x20, x22, #3076
	mov	w21, #-131072
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	add	x2, sp, #8
	mov	x0, x19
	bl	_encrypt_block
	ldr	w8, [sp, #8]
	stur	w8, [x20, #-4]
	ldr	w8, [sp, #12]
	str	w8, [x20], #8
	add	w21, w21, #32, lsl #12          ; =131072
	cmp	w21, #4064, lsl #12             ; =16646144
	b.lo	LBB0_15
; %bb.16:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_bf_sbox,8,3                    ; @bf_sbox
	.comm	_bf_pbox,8,3                    ; @bf_pbox
	.no_dead_strip	_bf_setkey
.subsections_via_symbols
