	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function baco_cmd_handler
_baco_cmd_handler:                      ## @baco_cmd_handler
	.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
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %rax
	addl	$-128, %esi
	cmpl	$4, %esi
	ja	LBB0_10
## %bb.1:
	movl	%r9d, %ebx
	movl	%r8d, %r12d
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movl	16(%rbp), %edi
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rsi,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_2:
	movl	%r12d, %ecx
	shll	%cl, %ebx
	jmp	LBB0_3
LBB0_10:
	movq	(%rax), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_5:
	movq	%rax, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_baco_wait_register             ## TAILCALL
LBB0_4:
	movl	%r14d, %edi
	callq	_RREG32
	notl	%r15d
	andl	%eax, %r15d
	movl	%r12d, %ecx
	shll	%cl, %ebx
	orl	%r15d, %ebx
LBB0_3:
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_WREG32
	movl	$1, %ebx
	jmp	LBB0_11
LBB0_8:
	movl	$1, %ebx
	testl	%edi, %edi
	je	LBB0_11
## %bb.9:
	callq	_udelay
	jmp	LBB0_11
LBB0_6:
	movl	$1, %ebx
	testl	%edi, %edi
	je	LBB0_11
## %bb.7:
	callq	_msleep
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid BACO command.\n"

	.no_dead_strip	_baco_cmd_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function baco_cmd_handler
_baco_cmd_handler:                      ; @baco_cmd_handler
	.cfi_startproc
; %bb.0:
	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
	sub	w8, w1, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
	mov	x20, x5
	mov	x22, x4
	mov	x21, x3
	mov	x19, x2
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:
	lsl	w1, w20, w22
	b	LBB0_6
LBB0_3:
	ldr	x8, [x0]
	ldr	w0, [x8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	mov	w0, #0
	b	LBB0_12
LBB0_4:
	mov	x1, x19
	mov	x2, x21
	mov	x3, x20
	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	_baco_wait_register
LBB0_5:
	mov	x0, x19
	bl	_RREG32
	bic	w8, w0, w21
	lsl	w9, w20, w22
	orr	w1, w8, w9
LBB0_6:
	mov	x0, x19
	bl	_WREG32
	b	LBB0_11
LBB0_7:
	cbz	w6, LBB0_11
; %bb.8:
	mov	x0, x6
	bl	_udelay
	b	LBB0_11
LBB0_9:
	cbz	w6, LBB0_11
; %bb.10:
	mov	x0, x6
	bl	_msleep
LBB0_11:
	mov	w0, #1
LBB0_12:
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid BACO command.\n"

	.no_dead_strip	_baco_cmd_handler
.subsections_via_symbols
