	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function hil_mlc_register
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_hil_mlc_register
	.p2align	4, 0x90
_hil_mlc_register:                      ## @hil_mlc_register
	.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
	movq	%rdi, %r13
	xorl	%edi, %edi
	testq	%r13, %r13
	sete	%dil
	callq	_BUG_ON
	leaq	88(%r13), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 96(%r13)
	callq	_rwlock_init
	leaq	84(%r13), %rdi
	movl	$1, %esi
	callq	_sema_init
	leaq	80(%r13), %rdi
	movl	$1, %esi
	callq	_sema_init
	movl	$-1, (%r13)
	leaq	56(%r13), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%r13)
	xorl	%esi, %esi
	callq	_sema_init
	movq	%r13, %rdi
	callq	_hil_mlc_clear_di_scratch
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_hil_mlc_clear_di_map
	movq	_HIL_MLC_DEVMEM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.1:
	movl	$1, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-1(%r15), %rbx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_hil_mlc_copy_di_scratch
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	movq	%rax, %r14
	movq	48(%r13), %rax
	movq	%r14, -8(%rax,%r15,8)
	movq	48(%r13), %rax
	cmpq	$0, -8(%rax,%r15,8)
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	28(%r14), %edi
	movl	$3, %esi
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %ecx
	callq	_snprintf
	movl	24(%r14), %edi
	movl	$3, %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %ecx
	callq	_snprintf
	movl	%ebx, 20(%r14)
	movq	_hil_mlc_serio_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_hil_mlc_serio_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_hil_mlc_serio_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	40(%r13), %rax
	leaq	(%rax,%r12), %rcx
	movq	%rcx, (%r14)
	movq	%r13, 8(%rax,%r12)
	movl	%ebx, (%rax,%r12)
	movl	$-1, 4(%rax,%r12)
	movq	32(%r13), %rax
	movq	$0, -8(%rax,%r15,8)
	movq	24(%r13), %rax
	movq	$0, -8(%rax,%r15,8)
	movq	%r14, %rdi
	callq	_serio_register_port
	incq	%r15
	addq	$16, %r12
	leal	-1(%r15), %eax
	movq	_HIL_MLC_DEVMEM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_2
LBB0_7:
	movq	_hil_mlcs_tasklet@GOTPCREL(%rip), %r14
	movq	%r14, 16(%r13)
	movq	_hil_mlcs_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_write_lock_irqsave
	leaq	8(%r13), %rdi
	movq	_hil_mlcs@GOTPCREL(%rip), %rsi
	callq	_list_add_tail
	movq	_HILSEN_START@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movq	%rbx, %rdi
	callq	_write_unlock_irqrestore
	movq	%r14, %rdi
	callq	_tasklet_schedule
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_3:
	movq	-8(%rax,%r15,8), %rdi
	callq	_kfree
	cmpl	$1, %r15d
	je	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r13), %rax
	movq	-16(%rax,%r15,8), %rdi
	callq	_kfree
	decq	%r15
	cmpq	$1, %r15
	jg	LBB0_4
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HIL_MLC_DEVMEM,4,2             ## @HIL_MLC_DEVMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HIL_SERIO%d"

L_.str.1:                               ## @.str.1
	.asciz	"HIL%d"

	.comm	_hil_mlc_serio_id,4,2           ## @hil_mlc_serio_id
	.comm	_hil_mlc_serio_write,4,2        ## @hil_mlc_serio_write
	.comm	_hil_mlc_serio_open,4,2         ## @hil_mlc_serio_open
	.comm	_hil_mlc_serio_close,4,2        ## @hil_mlc_serio_close
	.comm	_hil_mlcs_tasklet,4,2           ## @hil_mlcs_tasklet
	.comm	_hil_mlcs_lock,4,2              ## @hil_mlcs_lock
	.comm	_hil_mlcs,4,2                   ## @hil_mlcs
	.comm	_HILSEN_START,4,2               ## @HILSEN_START
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hil_mlc_register               ; -- Begin function hil_mlc_register
	.p2align	2
_hil_mlc_register:                      ; @hil_mlc_register
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	add	x0, x19, #88
	stp	xzr, xzr, [x19, #96]
	bl	_rwlock_init
	add	x0, x19, #84
	mov	w1, #1
	bl	_sema_init
	add	x0, x19, #80
	mov	w1, #1
	bl	_sema_init
	mov	w8, #-1
	str	w8, [x19]
	add	x0, x19, #56
	stp	xzr, xzr, [x19, #64]
	mov	w1, #0
	bl	_sema_init
	mov	x0, x19
	bl	_hil_mlc_clear_di_scratch
	mov	x0, x19
	mov	w1, #0
	bl	_hil_mlc_clear_di_map
Lloh0:
	adrp	x25, _HIL_MLC_DEVMEM@GOTPAGE
Lloh1:
	ldr	x25, [x25, _HIL_MLC_DEVMEM@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x26, #0
	mov	x20, #0
Lloh2:
	adrp	x28, _hil_mlc_serio_write@GOTPAGE
Lloh3:
	ldr	x28, [x28, _hil_mlc_serio_write@GOTPAGEOFF]
Lloh4:
	adrp	x24, _hil_mlc_serio_open@GOTPAGE
Lloh5:
	ldr	x24, [x24, _hil_mlc_serio_open@GOTPAGEOFF]
Lloh6:
	adrp	x21, _hil_mlc_serio_close@GOTPAGE
Lloh7:
	ldr	x21, [x21, _hil_mlc_serio_close@GOTPAGEOFF]
Lloh8:
	adrp	x22, l_.str.1@PAGE
Lloh9:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_hil_mlc_copy_di_scratch
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	ldr	x8, [x19, #48]
	lsl	x27, x20, #3
	str	x0, [x8, x27]
	ldr	x8, [x19, #48]
	ldr	x9, [x8, x27]
	cbz	x9, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, x0
	ldr	w0, [x0, #28]
	mov	w1, #3
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x20
	bl	_snprintf
	ldr	w0, [x23, #24]
	mov	w1, #3
	mov	x2, x22
	mov	x3, x20
	bl	_snprintf
	ldr	w8, [x28]
	stp	w8, w20, [x23, #16]
	ldr	w8, [x24]
	ldr	w9, [x21]
	stp	w9, w8, [x23, #8]
	ldr	x8, [x19, #40]
	add	x8, x8, x26
	str	x8, [x23]
	str	x19, [x8, #8]
	mov	w9, #-1
	stp	w20, w9, [x8]
	ldp	x9, x8, [x19, #24]
	str	xzr, [x8, x27]
	str	xzr, [x9, x27]
	mov	x0, x23
	bl	_serio_register_port
	ldr	w8, [x25]
	add	x20, x20, #1
	add	x26, x26, #16
	cmp	w20, w8
	b.lt	LBB0_2
LBB0_4:
Lloh15:
	adrp	x20, _hil_mlcs_tasklet@GOTPAGE
Lloh16:
	ldr	x20, [x20, _hil_mlcs_tasklet@GOTPAGEOFF]
	str	x20, [x19, #16]
Lloh17:
	adrp	x21, _hil_mlcs_lock@GOTPAGE
Lloh18:
	ldr	x21, [x21, _hil_mlcs_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_write_lock_irqsave
	add	x0, x19, #8
Lloh19:
	adrp	x1, _hil_mlcs@GOTPAGE
Lloh20:
	ldr	x1, [x1, _hil_mlcs@GOTPAGEOFF]
	bl	_list_add_tail
Lloh21:
	adrp	x8, _HILSEN_START@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HILSEN_START@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x21
	bl	_write_unlock_irqrestore
	mov	x0, x20
	bl	_tasklet_schedule
	mov	w0, #0
	b	LBB0_9
LBB0_5:
	ldr	x0, [x8, x20, lsl #3]
	bl	_kfree
	cbz	w20, LBB0_8
; %bb.6:
	sub	x20, x20, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	ldr	x0, [x8, x20, lsl #3]
	bl	_kfree
	add	x8, x20, #1
	sub	x20, x20, #1
	cmp	x8, #1
	b.gt	LBB0_7
LBB0_8:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_HIL_MLC_DEVMEM,4,2             ; @HIL_MLC_DEVMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HIL_SERIO%d"

l_.str.1:                               ; @.str.1
	.asciz	"HIL%d"

	.comm	_hil_mlc_serio_id,4,2           ; @hil_mlc_serio_id
	.comm	_hil_mlc_serio_write,4,2        ; @hil_mlc_serio_write
	.comm	_hil_mlc_serio_open,4,2         ; @hil_mlc_serio_open
	.comm	_hil_mlc_serio_close,4,2        ; @hil_mlc_serio_close
	.comm	_hil_mlcs_tasklet,4,2           ; @hil_mlcs_tasklet
	.comm	_hil_mlcs_lock,4,2              ; @hil_mlcs_lock
	.comm	_hil_mlcs,4,2                   ; @hil_mlcs
	.comm	_HILSEN_START,4,2               ; @HILSEN_START
.subsections_via_symbols
