	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ps2_sliced_command             ## -- Begin function ps2_sliced_command
	.p2align	4, 0x90
_ps2_sliced_command:                    ## @ps2_sliced_command
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_ps2_begin_command
	movq	_PS2_CMD_SETSCALE11@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	___ps2_command
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	%r14d, %eax
	shrl	$6, %eax
	andl	$3, %eax
	movl	%eax, -36(%rbp)
	movq	_PS2_CMD_SETRES@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	-36(%rbp), %rsi
	movq	%r15, %rdi
	callq	___ps2_command
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movl	%r14d, %eax
	shrl	$4, %eax
	andl	$3, %eax
	movl	%eax, -36(%rbp)
	movl	(%r12), %edx
	leaq	-36(%rbp), %rsi
	movq	%r15, %rdi
	callq	___ps2_command
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	%r14d, %eax
	shrl	$2, %eax
	andl	$3, %eax
	movl	%eax, -36(%rbp)
	movl	(%r12), %edx
	leaq	-36(%rbp), %rsi
	movq	%r15, %rdi
	callq	___ps2_command
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	%r14d, %eax
	andl	$3, %eax
	movl	%eax, -36(%rbp)
	movl	(%r12), %edx
	leaq	-36(%rbp), %rsi
	movq	%r15, %rdi
	callq	___ps2_command
	movl	%eax, %ebx
LBB0_5:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	callq	_dev_dbg
	movq	%r15, %rdi
	callq	_ps2_end_command
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PS2_CMD_SETSCALE11,4,2         ## @PS2_CMD_SETSCALE11
	.comm	_PS2_CMD_SETRES,4,2             ## @PS2_CMD_SETRES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%02x - %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ps2_sliced_command             ; -- Begin function ps2_sliced_command
	.p2align	2
_ps2_sliced_command:                    ; @ps2_sliced_command
	.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, x1
	mov	x19, x0
	bl	_ps2_begin_command
Lloh0:
	adrp	x8, _PS2_CMD_SETSCALE11@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PS2_CMD_SETSCALE11@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	bl	___ps2_command
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.1:
	ubfx	w8, w20, #6, #2
	str	w8, [sp, #12]
Lloh3:
	adrp	x22, _PS2_CMD_SETRES@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PS2_CMD_SETRES@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x1, sp, #12
	mov	x0, x19
	bl	___ps2_command
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.2:
	ubfx	w8, w20, #4, #2
	str	w8, [sp, #12]
	ldr	w2, [x22]
	add	x1, sp, #12
	mov	x0, x19
	bl	___ps2_command
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.3:
	ubfx	w8, w20, #2, #2
	str	w8, [sp, #12]
	ldr	w2, [x22]
	add	x1, sp, #12
	mov	x0, x19
	bl	___ps2_command
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.4:
	and	w8, w20, #0x3
	str	w8, [sp, #12]
	ldr	w2, [x22]
	add	x1, sp, #12
	mov	x0, x19
	bl	___ps2_command
	mov	x21, x0
LBB0_5:
	ldr	x0, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_dev_dbg
	mov	x0, x19
	bl	_ps2_end_command
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PS2_CMD_SETSCALE11,4,2         ; @PS2_CMD_SETSCALE11
	.comm	_PS2_CMD_SETRES,4,2             ; @PS2_CMD_SETRES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%02x - %d\n"

.subsections_via_symbols
