	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hil_mlc_serio_write
_hil_mlc_serio_write:                   ## @hil_mlc_serio_write
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	xorl	%edi, %edi
	testq	%r12, %r12
	sete	%dil
	callq	_BUG_ON
	movq	8(%r12), %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_BUG_ON
	movq	8(%r15), %rdi
	movq	(%r12), %rax
	movb	(%rdi,%rax,4), %dl
	shlb	$3, %dl
	movb	$24, %cl
	subb	%dl, %cl
	shll	%cl, %r14d
	movq	(%r15), %rcx
	orl	(%rcx,%rax,4), %r14d
	movl	%r14d, (%rcx,%rax,4)
	movl	(%rdi,%rax,4), %esi
	cmpl	$3, %esi
	jl	LBB0_9
## %bb.1:
	movq	_HIL_PKT_CMD@GOTPCREL(%rip), %rdx
	testl	%r14d, (%rdx)
	je	LBB0_2
## %bb.3:
	movq	_HIL_PKT_DATA_MASK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %r14d
	addl	$-128, %r14d
	cmpl	$3, %r14d
	ja	LBB0_8
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%r14,4), %rdx
	addq	%rcx, %rdx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	jmpq	*%rdx
LBB0_5:
	movq	16(%r15), %rcx
	shlq	$5, %rax
	addq	%rcx, %rax
	addq	$16, %rax
	jmp	LBB0_11
LBB0_8:
	movl	$0, (%rdi,%rax,4)
	movl	$0, (%rcx,%rax,4)
	movl	(%rdi,%rax,4), %esi
LBB0_9:
	incl	%esi
	movl	%esi, (%rdi,%rax,4)
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_45
LBB0_7:
	shlq	$5, %rax
	addq	16(%r15), %rax
	jmp	LBB0_11
LBB0_10:
	movq	16(%r15), %rcx
	shlq	$5, %rax
	addq	%rcx, %rax
	addq	$24, %rax
	jmp	LBB0_11
LBB0_6:
	movq	16(%r15), %rcx
	shlq	$5, %rax
	addq	%rcx, %rax
	addq	$8, %rax
LBB0_11:
	movq	(%rax), %r15
	movq	(%rbx), %r13
	xorl	%edi, %edi
	testq	%r13, %r13
	sete	%dil
	callq	_BUG_ON
	cmpq	$0, 120(%r15)
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_13
## %bb.12:
	leaq	120(%r15), %r14
	jmp	LBB0_41
LBB0_13:
	cmpq	$0, 112(%r15)
	je	LBB0_15
## %bb.14:
	leaq	112(%r15), %r14
	jmp	LBB0_41
LBB0_15:
	cmpq	$0, 104(%r15)
	je	LBB0_17
## %bb.16:
	leaq	104(%r15), %r14
	jmp	LBB0_41
LBB0_17:
	cmpq	$0, 96(%r15)
	je	LBB0_19
## %bb.18:
	leaq	96(%r15), %r14
	jmp	LBB0_41
LBB0_19:
	cmpq	$0, 88(%r15)
	je	LBB0_21
## %bb.20:
	leaq	88(%r15), %r14
	jmp	LBB0_41
LBB0_21:
	cmpq	$0, 80(%r15)
	je	LBB0_23
## %bb.22:
	leaq	80(%r15), %r14
	jmp	LBB0_41
LBB0_23:
	cmpq	$0, 72(%r15)
	je	LBB0_25
## %bb.24:
	leaq	72(%r15), %r14
	jmp	LBB0_41
LBB0_25:
	cmpq	$0, 64(%r15)
	je	LBB0_27
## %bb.26:
	leaq	64(%r15), %r14
	jmp	LBB0_41
LBB0_27:
	cmpq	$0, 56(%r15)
	je	LBB0_29
## %bb.28:
	leaq	56(%r15), %r14
	jmp	LBB0_41
LBB0_29:
	cmpq	$0, 48(%r15)
	je	LBB0_31
## %bb.30:
	leaq	48(%r15), %r14
	jmp	LBB0_41
LBB0_31:
	cmpq	$0, 40(%r15)
	je	LBB0_33
## %bb.32:
	leaq	40(%r15), %r14
	jmp	LBB0_41
LBB0_33:
	cmpq	$0, 32(%r15)
	je	LBB0_35
## %bb.34:
	leaq	32(%r15), %r14
	jmp	LBB0_41
LBB0_35:
	cmpq	$0, 24(%r15)
	je	LBB0_37
## %bb.36:
	leaq	24(%r15), %r14
	jmp	LBB0_41
LBB0_37:
	cmpq	$0, 16(%r15)
	je	LBB0_39
## %bb.38:
	leaq	16(%r15), %r14
	jmp	LBB0_41
LBB0_39:
	cmpq	$0, 8(%r15)
	je	LBB0_44
## %bb.40:
	leaq	8(%r15), %r14
LBB0_41:
	movq	_HIL_ERR_INT@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	*(%r13)
	movswq	2(%r12), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	*(%r13)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	*(%r13)
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	*(%r13)
	addq	$8, %r15
	cmpq	%r14, %r15
	jne	LBB0_42
## %bb.43:
	movq	%r14, %r15
LBB0_44:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	*(%r13)
	movq	_HIL_ERR_INT@GOTPCREL(%rip), %rax
	movswq	2(%rax), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	*(%r13)
	movq	_HIL_PKT_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	$8, %eax
	movslq	%eax, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	*(%r13)
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	*(%r13)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	$0, (%rax,%rcx,4)
	movq	(%rdx), %rax
	movl	$0, (%rax,%rcx,4)
LBB0_45:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_10
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_HIL_PKT_CMD,4,2                ## @HIL_PKT_CMD
	.comm	_EIO,4,2                        ## @EIO
	.comm	_HIL_PKT_DATA_MASK,4,2          ## @HIL_PKT_DATA_MASK
	.comm	_HIL_ERR_INT,4,2                ## @HIL_ERR_INT
	.no_dead_strip	_hil_mlc_serio_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hil_mlc_serio_write
_hil_mlc_serio_write:                   ; @hil_mlc_serio_write
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	cmp	x21, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x22, [x21, #8]
	cmp	x22, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x8, [x21]
	lsl	x10, x8, #2
	ldp	x11, x9, [x22]
	ldr	w12, [x9, x10]
	mov	w13, #24
	sub	w12, w13, w12, lsl #3
	lsl	w12, w20, w12
	ldr	w13, [x11, x10]
	orr	w12, w12, w13
	str	w12, [x11, x10]
	ldr	w13, [x9, x10]
	cmp	w13, #3
	b.lt	LBB0_6
; %bb.1:
Lloh0:
	adrp	x20, _HIL_PKT_CMD@GOTPAGE
Lloh1:
	ldr	x20, [x20, _HIL_PKT_CMD@GOTPAGEOFF]
	ldr	w13, [x20]
	tst	w13, w12
	b.eq	LBB0_7
; %bb.2:
Lloh2:
	adrp	x13, _HIL_PKT_DATA_MASK@GOTPAGE
Lloh3:
	ldr	x13, [x13, _HIL_PKT_DATA_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w13, [x13]
	and	w12, w13, w12
	sub	w12, w12, #128
	cmp	w12, #3
	b.hi	LBB0_5
; %bb.3:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x12]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	ldr	x9, [x22, #16]
	add	x8, x9, x8, lsl #5
	add	x8, x8, #16
	b	LBB0_11
LBB0_5:
	str	wzr, [x9, x10]
	str	wzr, [x11, x10]
	ldr	w13, [x9, x10]
LBB0_6:
	add	w10, w13, #1
	str	w10, [x9, x8, lsl #2]
LBB0_7:
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_29
LBB0_8:
	ldr	x9, [x22, #16]
	add	x8, x9, x8, lsl #5
	b	LBB0_11
LBB0_9:
	ldr	x9, [x22, #16]
	add	x8, x9, x8, lsl #5
	add	x8, x8, #24
	b	LBB0_11
LBB0_10:
	ldr	x9, [x22, #16]
	add	x8, x9, x8, lsl #5
	add	x8, x8, #8
LBB0_11:
	ldr	x23, [x8]
	ldr	x24, [x19]
	cmp	x24, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x26, x23
	ldr	x8, [x26, #120]!
Lloh10:
	adrp	x25, _HIL_ERR_INT@GOTPAGE
Lloh11:
	ldr	x25, [x25, _HIL_ERR_INT@GOTPAGEOFF]
	cbnz	x8, LBB0_26
; %bb.12:
	mov	x26, x23
	ldr	x8, [x26, #112]!
	cbnz	x8, LBB0_26
; %bb.13:
	mov	x26, x23
	ldr	x8, [x26, #104]!
	cbnz	x8, LBB0_26
; %bb.14:
	mov	x26, x23
	ldr	x8, [x26, #96]!
	cbnz	x8, LBB0_26
; %bb.15:
	mov	x26, x23
	ldr	x8, [x26, #88]!
	cbnz	x8, LBB0_26
; %bb.16:
	mov	x26, x23
	ldr	x8, [x26, #80]!
	cbnz	x8, LBB0_26
; %bb.17:
	mov	x26, x23
	ldr	x8, [x26, #72]!
	cbnz	x8, LBB0_26
; %bb.18:
	mov	x26, x23
	ldr	x8, [x26, #64]!
	cbnz	x8, LBB0_26
; %bb.19:
	mov	x26, x23
	ldr	x8, [x26, #56]!
	cbnz	x8, LBB0_26
; %bb.20:
	mov	x26, x23
	ldr	x8, [x26, #48]!
	cbnz	x8, LBB0_26
; %bb.21:
	mov	x26, x23
	ldr	x8, [x26, #40]!
	cbnz	x8, LBB0_26
; %bb.22:
	mov	x26, x23
	ldr	x8, [x26, #32]!
	cbnz	x8, LBB0_26
; %bb.23:
	mov	x26, x23
	ldr	x8, [x26, #24]!
	cbnz	x8, LBB0_26
; %bb.24:
	mov	x26, x23
	ldr	x8, [x26, #16]!
	cbnz	x8, LBB0_26
; %bb.25:
	mov	x26, x23
	ldr	x8, [x26, #8]!
	cbz	x8, LBB0_28
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	blr	x8
	ldr	x8, [x24]
	ldrsh	x1, [x25, #2]
	mov	x0, x19
	mov	w2, #0
	blr	x8
	ldr	x8, [x24]
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	blr	x8
	ldr	x8, [x24]
	ldr	x1, [x23], #8
	mov	x0, x19
	mov	w2, #0
	blr	x8
	cmp	x23, x26
	b.ne	LBB0_26
; %bb.27:
	mov	x23, x26
LBB0_28:
	ldr	x8, [x24]
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	blr	x8
	ldr	x8, [x24]
	ldrsh	x1, [x25, #2]
	mov	x0, x19
	mov	w2, #0
	blr	x8
	ldr	x8, [x24]
	ldr	w9, [x20]
	sbfx	x1, x9, #8, #24
	mov	x0, x19
	mov	w2, #0
	blr	x8
	ldr	x8, [x24]
	ldr	x1, [x23]
	mov	x0, x19
	mov	w2, #0
	blr	x8
	mov	w0, #0
	ldr	x8, [x21]
	lsl	x8, x8, #2
	ldp	x10, x9, [x22]
	str	wzr, [x9, x8]
	str	wzr, [x10, x8]
LBB0_29:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
                                        ; -- End function
	.comm	_HIL_PKT_CMD,4,2                ; @HIL_PKT_CMD
	.comm	_EIO,4,2                        ; @EIO
	.comm	_HIL_PKT_DATA_MASK,4,2          ; @HIL_PKT_DATA_MASK
	.comm	_HIL_ERR_INT,4,2                ; @HIL_ERR_INT
	.no_dead_strip	_hil_mlc_serio_write
.subsections_via_symbols
