	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function BF_set_key
_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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BF_N@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpl	$-2, (%rax)
	movl	$0, %r9d
	je	LBB0_12
## %bb.1:
	movq	%rdi, %r8
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r10d
	andl	$1, %r10d
	movq	_BF_init_state@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	xorl	%r15d, %r15d
	xorl	%r9d, %r9d
	xorl	%r14d, %r14d
	movq	%rdi, %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	orl	%ebx, %r14d
	xorl	%ecx, %eax
	orl	%eax, %r9d
	movl	-56(%rbp,%r10,4), %eax
	movl	%eax, (%rsi,%r15,4)
	xorl	(%r11,%r15,4), %eax
	movl	%eax, (%rdx,%r15,4)
	incq	%r15
	movq	_BF_N@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$2, %eax
	cmpq	%rax, %r15
	jae	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -56(%rbp)
	movzbl	(%r12), %ecx
	movl	%ecx, -56(%rbp)
	movl	$0, -52(%rbp)
	movsbl	(%r12), %eax
	movl	%eax, -52(%rbp)
	cmpb	$0, (%r12)
	movq	%r8, %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movq	%r12, %rdi
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	shll	$8, %ecx
	movl	%ecx, -56(%rbp)
	movzbl	(%rdi), %ebx
	orl	%ecx, %ebx
	movl	%ebx, -56(%rbp)
	shll	$8, %eax
	movl	%eax, -52(%rbp)
	movsbl	(%rdi), %ecx
	orl	%ecx, %eax
	movl	%eax, -52(%rbp)
	andl	$128, %ecx
	cmpb	$0, (%rdi)
	movq	%r8, %r13
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdi
	movq	%rdi, %r13
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	orl	%ecx, %r14d
	shll	$8, %ebx
	movl	%ebx, -56(%rbp)
	movzbl	(%r13), %r12d
	orl	%ebx, %r12d
	movl	%r12d, -56(%rbp)
	shll	$8, %eax
	movl	%eax, -52(%rbp)
	movsbl	(%r13), %ecx
	orl	%ecx, %eax
	movl	%eax, -52(%rbp)
	andl	$128, %ecx
	cmpb	$0, (%r13)
	movq	%r8, %rdi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movq	%r13, %rdi
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	orl	%ecx, %r14d
	shll	$8, %r12d
	movl	%r12d, -56(%rbp)
	movzbl	(%rdi), %ecx
	orl	%r12d, %ecx
	movl	%ecx, -56(%rbp)
	shll	$8, %eax
	movl	%eax, -52(%rbp)
	movsbl	(%rdi), %ebx
	orl	%ebx, %eax
	movl	%eax, -52(%rbp)
	andl	$128, %ebx
	cmpb	$0, (%rdi)
	movq	%r8, %r12
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdi
	movq	%rdi, %r12
	jmp	LBB0_10
LBB0_11:
	shll	$9, %r14d
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
LBB0_12:
	shll	$15, %ecx
	andl	%r14d, %ecx
	movl	%r9d, %eax
	shrl	$16, %eax
	movzwl	%r9w, %esi
	orl	%eax, %esi
	movl	$65536, %eax                    ## imm = 0x10000
	subl	%esi, %eax
	andl	%ecx, %eax
	andl	$65536, %eax                    ## imm = 0x10000
	xorl	%eax, (%rdx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BF_N,4,2                       ## @BF_N
	.comm	_BF_init_state,8,3              ## @BF_init_state
	.no_dead_strip	_BF_set_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function BF_set_key
_BF_set_key:                            ; @BF_set_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x9, _BF_N@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BF_N@GOTPAGEOFF]
	ldr	w8, [x9]
	cmn	w8, #2
	b.ne	LBB0_2
; %bb.1:
	mov	w9, #0
	mov	w8, #0
	b	LBB0_5
LBB0_2:
	mov	x10, #0
	mov	w8, #0
	mov	w14, #0
	and	w11, w3, #0x1
Lloh5:
	adrp	x12, _BF_init_state@GOTPAGE
Lloh6:
	ldr	x12, [x12, _BF_init_state@GOTPAGEOFF]
Lloh7:
	ldr	x12, [x12]
	mov	x13, sp
	mov	x15, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [sp]
	ldrb	w16, [x15]
	stp	w16, wzr, [sp]
	ldrsb	w17, [x15]
	str	w17, [sp, #4]
	ldrb	w4, [x15], #1
	cmp	w4, #0
	csel	x15, x0, x15, eq
	lsl	w4, w16, #8
	str	w4, [sp]
	ldrb	w4, [x15]
	bfi	w4, w16, #8, #8
	lsl	w16, w17, #8
	stp	w4, w16, [sp]
	ldrsb	w17, [x15]
	orr	w16, w16, w17
	str	w16, [sp, #4]
	and	w17, w17, #0x80
	orr	w14, w17, w14
	ldrb	w17, [x15], #1
	cmp	w17, #0
	csel	x15, x0, x15, eq
	lsl	w17, w4, #8
	str	w17, [sp]
	ldrb	w17, [x15]
	bfi	w17, w4, #8, #16
	lsl	w16, w16, #8
	stp	w17, w16, [sp]
	ldrsb	w4, [x15]
	orr	w16, w16, w4
	str	w16, [sp, #4]
	and	w4, w4, #0x80
	orr	w14, w4, w14
	ldrb	w4, [x15], #1
	cmp	w4, #0
	csel	x15, x0, x15, eq
	lsl	w4, w17, #8
	str	w4, [sp]
	ldrb	w4, [x15]
	bfi	w4, w17, #8, #24
	lsl	w16, w16, #8
	stp	w4, w16, [sp]
	ldrsb	w17, [x15]
	orr	w16, w16, w17
	str	w16, [sp, #4]
	and	w17, w17, #0x80
	orr	w14, w17, w14
	ldrb	w17, [x15], #1
	cmp	w17, #0
	csel	x15, x0, x15, eq
	eor	w16, w16, w4
	orr	w8, w16, w8
	ldr	w16, [x13, x11, lsl #2]
	lsl	x17, x10, #2
	str	w16, [x1, x17]
	ldr	w4, [x12, x17]
	eor	w16, w4, w16
	str	w16, [x2, x17]
	add	x10, x10, #1
	ldr	w16, [x9]
	add	w16, w16, #2
	cmp	x10, x16
	b.lo	LBB0_3
; %bb.4:
	lsl	w9, w14, #9
LBB0_5:
	and	w9, w9, w3, lsl #15
	and	w10, w8, #0xffff
	orr	w8, w10, w8, lsr #16
	mov	w10, #65536
	sub	w8, w10, w8
	and	w8, w9, w8
	and	w8, w8, #0x10000
	ldr	w9, [x2]
	eor	w8, w9, w8
	str	w8, [x2]
	ldr	x8, [sp, #8]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BF_N,4,2                       ; @BF_N
	.comm	_BF_init_state,8,3              ; @BF_init_state
	.no_dead_strip	_BF_set_key
.subsections_via_symbols
