	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BF_set_key                     ## -- Begin function BF_set_key
	.p2align	4, 0x90
_BF_set_key:                            ## @BF_set_key
	.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
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_bf_init@GOTPCREL(%rip), %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	_BF_ROUNDS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	leal	8(,%rax,4), %ecx
	cmpl	%r15d, %ecx
	cmovll	%ecx, %r15d
	cmpl	$-1, %eax
	jl	LBB0_18
## %bb.1:
	movq	(%r14), %r13
	movslq	%r15d, %rax
	addq	%rbx, %rax
	movq	$-1, %rcx
	movq	%rbx, %rsi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, 4(%r13,%rcx,4)
	movslq	(%r12), %rdi
	incq	%rcx
	movq	%rdx, %rsi
	cmpq	%rdi, %rcx
	jg	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rsi), %rdi
	cmpq	%rax, %rdi
	jb	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%rdi), %rdx
	cmpq	%rax, %rdx
	jb	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	(%rsi), %esi
	movzbl	(%rdi), %edi
	shll	$16, %esi
	shll	$8, %edi
	orl	%esi, %edi
	movzbl	(%rdx), %esi
	incq	%rdx
	orl	%edi, %esi
	cmpq	%rax, %rdx
	jb	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	shll	$8, %esi
	movzbl	(%rdx), %edi
	incq	%rdx
	orl	%esi, %edi
	cmpq	%rax, %rdx
	jb	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdx
	jmp	LBB0_10
LBB0_18:
	movq	$0, -56(%rbp)
	jmp	LBB0_14
LBB0_11:
	movq	$0, -56(%rbp)
	cmpl	$-1, %edi
	jl	LBB0_14
## %bb.12:
	movq	$-2, %rbx
	leaq	-56(%rbp), %r15
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_BF_encrypt
	movl	-56(%rbp), %eax
	movl	%eax, 8(%r13,%rbx,4)
	movl	-52(%rbp), %eax
	movl	%eax, 12(%r13,%rbx,4)
	movslq	(%r12), %rax
	addq	$2, %rbx
	cmpq	%rax, %rbx
	jl	LBB0_13
LBB0_14:
	movq	8(%r14), %r12
	movq	$-2, %rbx
	leaq	-56(%rbp), %r15
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_BF_encrypt
	movl	-56(%rbp), %eax
	movl	%eax, 8(%r12,%rbx,4)
	movl	-52(%rbp), %eax
	movl	%eax, 12(%r12,%rbx,4)
	addq	$2, %rbx
	cmpq	$1022, %rbx                     ## imm = 0x3FE
	jb	LBB0_15
## %bb.16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_bf_init,4,2                    ## @bf_init
	.comm	_BF_ROUNDS,4,2                  ## @BF_ROUNDS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BF_set_key                     ; -- Begin function BF_set_key
	.p2align	2
_BF_set_key:                            ; @BF_set_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x1, _bf_init@GOTPAGE
Lloh1:
	ldr	x1, [x1, _bf_init@GOTPAGEOFF]
	mov	w2, #16
	bl	_memcpy
Lloh2:
	adrp	x22, _BF_ROUNDS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _BF_ROUNDS@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	w9, w8, #2
	add	w9, w9, #8
	cmp	w9, w21
	csel	w9, w9, w21, lt
	cmn	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x8, #0
	ldr	x21, [x19]
	add	x9, x20, w9, sxtw
	mov	x10, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x10], #1
	cmp	x10, x9
	csel	x10, x10, x20, lo
	ldrb	w12, [x10], #1
	cmp	x10, x9
	csel	x10, x10, x20, lo
	lsl	w11, w11, #16
	bfi	w11, w12, #8, #8
	ldrb	w12, [x10], #1
	orr	w11, w11, w12
	cmp	x10, x9
	csel	x10, x10, x20, lo
	ldrb	w12, [x10], #1
	bfi	w12, w11, #8, #24
	cmp	x10, x9
	csel	x10, x10, x20, lo
	lsl	x11, x8, #2
	ldr	w13, [x21, x11]
	eor	w12, w12, w13
	str	w12, [x21, x11]
	add	x12, x8, #1
	ldrsw	x11, [x22]
	cmp	x8, x11
	mov	x8, x12
	b.le	LBB0_2
; %bb.3:
	str	xzr, [sp, #8]
	cmn	w11, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x20, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	x1, x19
	bl	_BF_encrypt
	ldr	w8, [sp, #8]
	add	x9, x21, x20, lsl #2
	str	w8, [x9]
	ldr	w8, [sp, #12]
	str	w8, [x9, #4]
	add	x8, x20, #2
	ldrsw	x9, [x22]
	cmp	x20, x9
	mov	x20, x8
	b.lt	LBB0_5
	b	LBB0_7
LBB0_6:
	str	xzr, [sp, #8]
LBB0_7:
	mov	x21, #0
	ldr	x20, [x19, #8]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	x1, x19
	bl	_BF_encrypt
	ldr	w8, [sp, #8]
	add	x9, x20, x21, lsl #2
	str	w8, [x9]
	ldr	w8, [sp, #12]
	str	w8, [x9, #4]
	add	x8, x21, #2
	cmp	x21, #1022
	mov	x21, x8
	b.lo	LBB0_8
; %bb.9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_bf_init,4,2                    ; @bf_init
	.comm	_BF_ROUNDS,4,2                  ; @BF_ROUNDS
.subsections_via_symbols
