	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rijndael_set_key               ## -- Begin function rijndael_set_key
	.p2align	4, 0x90
_rijndael_set_key:                      ## @rijndael_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rdi), %r13
	movq	8(%rdi), %r14
	xorl	%eax, %eax
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	sete	%al
	movl	%eax, 16(%rdi)
	movq	_tab_gen@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_gen_tabs
LBB0_2:
	leal	31(%rbx), %eax
	addl	$62, %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$5, %ebx
	movl	%ebx, 20(%r15)
	movl	(%r12), %edi
	callq	_io_swap
	movl	%eax, (%r13)
	movl	4(%r12), %edi
	callq	_io_swap
	movl	%eax, 4(%r13)
	movl	8(%r12), %edi
	callq	_io_swap
	movl	%eax, 8(%r13)
	movl	12(%r12), %edi
	callq	_io_swap
	movl	%eax, 12(%r13)
	movl	20(%r15), %eax
	cmpl	$8, %eax
	je	LBB0_7
## %bb.3:
	cmpl	$6, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$4, %eax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_9
## %bb.5:
	xorl	%edi, %edi
	callq	_loop4
	movl	$1, %edi
	callq	_loop4
	movl	$2, %edi
	callq	_loop4
	movl	$3, %edi
	callq	_loop4
	movl	$4, %edi
	callq	_loop4
	movl	$5, %edi
	callq	_loop4
	movl	$6, %edi
	callq	_loop4
	movl	$7, %edi
	callq	_loop4
	movl	$8, %edi
	callq	_loop4
	movl	$9, %edi
	callq	_loop4
LBB0_9:
	testl	%ebx, %ebx
	jne	LBB0_13
	jmp	LBB0_10
LBB0_7:
	movl	16(%r12), %edi
	callq	_io_swap
	movl	%eax, 16(%r13)
	movl	20(%r12), %edi
	callq	_io_swap
	movl	%eax, 20(%r13)
	movl	24(%r12), %edi
	callq	_io_swap
	movl	%eax, 24(%r13)
	movl	28(%r12), %edi
	callq	_io_swap
	movl	%eax, 28(%r13)
	xorl	%edi, %edi
	callq	_loop8
	movl	$1, %edi
	callq	_loop8
	movl	$2, %edi
	callq	_loop8
	movl	$3, %edi
	callq	_loop8
	movl	$4, %edi
	callq	_loop8
	movl	$5, %edi
	callq	_loop8
	movl	$6, %edi
	callq	_loop8
	jmp	LBB0_8
LBB0_6:
	movl	16(%r12), %edi
	callq	_io_swap
	movl	%eax, 16(%r13)
	movl	20(%r12), %edi
	callq	_io_swap
	movl	%eax, 20(%r13)
	xorl	%edi, %edi
	callq	_loop6
	movl	$1, %edi
	callq	_loop6
	movl	$2, %edi
	callq	_loop6
	movl	$3, %edi
	callq	_loop6
	movl	$4, %edi
	callq	_loop6
	movl	$5, %edi
	callq	_loop6
	movl	$6, %edi
	callq	_loop6
	movl	$7, %edi
	callq	_loop6
LBB0_8:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	jne	LBB0_13
LBB0_10:
	movl	(%r13), %eax
	movl	%eax, (%r14)
	movl	4(%r13), %eax
	movl	%eax, 4(%r14)
	movl	8(%r13), %eax
	movl	%eax, 8(%r14)
	movl	12(%r13), %eax
	movl	%eax, 12(%r14)
	cmpl	$-4, 20(%r15)
	jl	LBB0_13
## %bb.11:
	movl	$3, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r14,%rbx,4), %edi
	movl	4(%r13,%rbx,4), %esi
	callq	_imix_col
	movslq	20(%r15), %rax
	leaq	23(,%rax,4), %rax
	incq	%rbx
	cmpq	%rax, %rbx
	jl	LBB0_12
LBB0_13:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tab_gen,4,2                    ## @tab_gen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rijndael_set_key               ; -- Begin function rijndael_set_key
	.p2align	2
_rijndael_set_key:                      ; @rijndael_set_key
	.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
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldp	x23, x24, [x0]
	cmp	w3, #0
	cset	w8, eq
	str	w8, [x0, #16]
Lloh0:
	adrp	x8, _tab_gen@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tab_gen@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
	bl	_gen_tabs
LBB0_2:
	add	w8, w22, #31
	add	w9, w22, #62
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #5
	str	w8, [x19, #20]
	ldr	w0, [x21]
	bl	_io_swap
	str	w0, [x23]
	ldr	w0, [x21, #4]
	bl	_io_swap
	str	w0, [x23, #4]
	ldr	w0, [x21, #8]
	bl	_io_swap
	str	w0, [x23, #8]
	ldr	w0, [x21, #12]
	bl	_io_swap
	str	w0, [x23, #12]
	ldr	w8, [x19, #20]
	cmp	w8, #8
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #6
	b.eq	LBB0_11
; %bb.4:
	cmp	w8, #4
	b.ne	LBB0_7
; %bb.5:
	mov	w0, #0
	bl	_loop4
	mov	w0, #1
	bl	_loop4
	mov	w0, #2
	bl	_loop4
	mov	w0, #3
	bl	_loop4
	mov	w0, #4
	bl	_loop4
	mov	w0, #5
	bl	_loop4
	mov	w0, #6
	bl	_loop4
	mov	w0, #7
	bl	_loop4
	mov	w0, #8
	bl	_loop4
	mov	w0, #9
	bl	_loop4
	cbnz	w20, LBB0_12
	b	LBB0_8
LBB0_6:
	ldr	w0, [x21, #16]
	bl	_io_swap
	str	w0, [x23, #16]
	ldr	w0, [x21, #20]
	bl	_io_swap
	str	w0, [x23, #20]
	ldr	w0, [x21, #24]
	bl	_io_swap
	str	w0, [x23, #24]
	ldr	w0, [x21, #28]
	bl	_io_swap
	str	w0, [x23, #28]
	mov	w0, #0
	bl	_loop8
	mov	w0, #1
	bl	_loop8
	mov	w0, #2
	bl	_loop8
	mov	w0, #3
	bl	_loop8
	mov	w0, #4
	bl	_loop8
	mov	w0, #5
	bl	_loop8
	mov	w0, #6
	bl	_loop8
LBB0_7:
	cbnz	w20, LBB0_12
LBB0_8:
	ldr	w8, [x23]
	str	w8, [x24]
	ldr	w8, [x23, #4]
	str	w8, [x24, #4]
	ldr	w8, [x23, #8]
	str	w8, [x24, #8]
	ldr	w8, [x23, #12]
	str	w8, [x24, #12]
	ldr	w8, [x19, #20]
	cmn	w8, #4
	b.lt	LBB0_12
; %bb.9:
	mov	w20, #4
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	lsl	x8, x20, #2
	ldr	w0, [x24, x8]
	ldr	w1, [x23, x8]
	bl	_imix_col
	add	x8, x20, #1
	ldrsw	x9, [x19, #20]
	lsl	x9, x9, #2
	add	x9, x9, #23
	cmp	x20, x9
	mov	x20, x8
	b.lt	LBB0_10
	b	LBB0_12
LBB0_11:
	ldr	w0, [x21, #16]
	bl	_io_swap
	str	w0, [x23, #16]
	ldr	w0, [x21, #20]
	bl	_io_swap
	str	w0, [x23, #20]
	mov	w0, #0
	bl	_loop6
	mov	w0, #1
	bl	_loop6
	mov	w0, #2
	bl	_loop6
	mov	w0, #3
	bl	_loop6
	mov	w0, #4
	bl	_loop6
	mov	w0, #5
	bl	_loop6
	mov	w0, #6
	bl	_loop6
	mov	w0, #7
	bl	_loop6
	cbz	w20, LBB0_8
LBB0_12:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_tab_gen,4,2                    ; @tab_gen
.subsections_via_symbols
