	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_reiserfs_set_key_type
_grub_reiserfs_set_key_type:            ## @grub_reiserfs_set_key_type
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	leal	-128(%r14), %eax
	cmpl	$4, %eax
	ja	LBB0_3
## %bb.1:
	movq	%rdi, %r15
	xorl	%edi, %edi
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	xorl	%eax, %eax
	cmpl	$1, %edx
	setne	%al
	leal	(%rax,%rax,2), %edi
	addl	$-2, %edi
	cmpl	$1, %edx
	je	LBB0_7
	jmp	LBB0_10
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpl	$1, %edx
	movl	$500, %eax                      ## imm = 0x1F4
	movl	$3, %edi
	jmp	LBB0_9
LBB0_5:
	xorl	%eax, %eax
	cmpl	$1, %edx
	setne	%al
	leal	(%rax,%rax,2), %edi
	decl	%edi
LBB0_6:
	cmpl	$1, %edx
	jne	LBB0_10
LBB0_7:
	callq	_grub_cpu_to_le32
	movl	%eax, 4(%r15)
	jmp	LBB0_11
LBB0_8:
	cmpl	$1, %edx
	movl	$555, %eax                      ## imm = 0x22B
	movl	$15, %edi
LBB0_9:
	cmovel	%eax, %edi
	cmpl	$1, %edx
	je	LBB0_7
LBB0_10:
	movl	(%r15), %r12d
	movl	$-1, %edi
	callq	_grub_cpu_to_le64
	movl	%eax, %ebx
	andl	%r12d, %ebx
	callq	_grub_cpu_to_le64
	orl	%ebx, %eax
	movl	%eax, (%r15)
LBB0_11:
	movq	%r15, %rdi
	callq	_grub_reiserfs_get_key_type
	xorl	%edi, %edi
	cmpl	%r14d, %eax
	sete	%dil
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_grub_reiserfs_set_key_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_reiserfs_set_key_type
_grub_reiserfs_set_key_type:            ; @grub_reiserfs_set_key_type
	.cfi_startproc
; %bb.0:
	sub	w8, w1, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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_remember_state
	mov	x19, x1
	mov	x20, x0
	mov	w0, #0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	cmp	w2, #1
	mov	w8, #-2
	cinv	w0, w8, ne
	cmp	w2, #1
	b.eq	LBB0_7
	b	LBB0_10
LBB0_3:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
LBB0_4:
	.cfi_restore_state
	mov	w8, #3
	mov	w9, #500
	b	LBB0_9
LBB0_5:
	cmp	w2, #1
	mov	w8, #2
	csinv	w0, w8, wzr, ne
LBB0_6:
	cmp	w2, #1
	b.ne	LBB0_10
LBB0_7:
	bl	_grub_cpu_to_le32
	str	w0, [x20, #4]
	b	LBB0_11
LBB0_8:
	mov	w8, #15
	mov	w9, #555
LBB0_9:
	cmp	w2, #1
	csel	w0, w9, w8, eq
	cmp	w2, #1
	b.eq	LBB0_7
LBB0_10:
	ldr	w21, [x20]
	mov	w0, #-1
	bl	_grub_cpu_to_le64
	and	w21, w0, w21
	bl	_grub_cpu_to_le64
	orr	w8, w21, w0
	str	w8, [x20]
LBB0_11:
	mov	x0, x20
	bl	_grub_reiserfs_get_key_type
	cmp	w0, w19
	cset	w0, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_assert
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.no_dead_strip	_grub_reiserfs_set_key_type
.subsections_via_symbols
