	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mxl5xx_attach                  ## -- Begin function mxl5xx_attach
	.p2align	4, 0x90
_mxl5xx_attach:                         ## @mxl5xx_attach
	.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
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$120, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, 112(%rax)
	movq	%r12, 104(%rax)
	movl	$-1, (%rax)
	movq	%r14, 96(%rax)
	movl	4(%r13), %esi
	movq	%r14, %rdi
	callq	_match_base
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r12
	movl	4(%rax), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 4(%r12)
	cmpl	8(%r12), %eax
	jge	LBB0_7
## %bb.3:
	movq	%r12, 56(%rbx)
	jmp	LBB0_10
LBB0_4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$120, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %r12
	movq	%r14, 88(%rax)
	movl	4(%r13), %eax
	movl	%eax, 80(%r12)
	movl	(%r13), %eax
	movl	%eax, 76(%r12)
	movl	$1, 4(%r12)
	leaq	72(%r12), %rdi
	callq	_mutex_init
	leaq	68(%r12), %rdi
	callq	_mutex_init
	leaq	64(%r12), %rdi
	callq	_mutex_init
	leaq	40(%r12), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r12, 56(%rbx)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_probe
	testq	%rax, %rax
	js	LBB0_6
## %bb.9:
	movq	%r12, %rdi
	addq	$48, %rdi
	movq	_mxllist@GOTPCREL(%rip), %rsi
	callq	_list_add
LBB0_10:
	movq	_mxl_ops@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	24(%rbx), %r14
	movl	%eax, 32(%rbx)
	movq	16(%rbx), %rax
	movl	$4, (%rax)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, 4(%rax)
	movl	$8, 8(%rax)
	movq	%rbx, 24(%rbx)
	movq	_set_input@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	addq	$44, %rbx
	addq	$40, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_list_add
	jmp	LBB0_11
LBB0_6:
	movq	%r12, %rdi
	callq	_kfree
LBB0_7:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_8:
	xorl	%r14d, %r14d
LBB0_11:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_mxllist,4,2                    ## @mxllist
	.comm	_mxl_ops,4,2                    ## @mxl_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mxl5xx_attach                  ; -- Begin function mxl5xx_attach
	.p2align	2
_mxl5xx_attach:                         ; @mxl5xx_attach
	.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	x19, x4
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	w0, #120
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	stp	x22, x21, [x0, #104]
	mov	w8, #-1
	str	w8, [x0]
	str	x24, [x0, #96]
	ldr	w1, [x23, #4]
	mov	x0, x24
	bl	_match_base
	cbz	x0, LBB0_4
; %bb.2:
	mov	x22, x0
	ldp	w8, w9, [x0, #4]
	add	w10, w8, #1
	str	w10, [x0, #4]
	cmp	w8, w9
	b.ge	LBB0_9
; %bb.3:
	str	x22, [x20, #56]
	b	LBB0_7
LBB0_4:
	ldr	w1, [x25]
	mov	w0, #120
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.5:
	mov	x22, x0
	str	x24, [x0, #88]
	ldr	d0, [x23]
	stur	d0, [x0, #76]
	mov	w8, #1
	str	w8, [x0, #4]
	add	x0, x0, #72
	bl	_mutex_init
	add	x0, x22, #68
	bl	_mutex_init
	add	x0, x22, #64
	bl	_mutex_init
	add	x0, x22, #40
	bl	_INIT_LIST_HEAD
	str	x22, [x20, #56]
	mov	x0, x20
	mov	x1, x23
	bl	_probe
	tbnz	x0, #63, LBB0_8
; %bb.6:
	add	x0, x22, #48
Lloh2:
	adrp	x1, _mxllist@GOTPAGE
Lloh3:
	ldr	x1, [x1, _mxllist@GOTPAGEOFF]
	bl	_list_add
LBB0_7:
Lloh4:
	adrp	x8, _mxl_ops@GOTPAGE
Lloh5:
	ldr	x8, [x8, _mxl_ops@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	add	x23, x20, #24
	str	w8, [x20, #32]
	ldr	x8, [x20, #16]
	mov	w9, #4
	stp	w9, w21, [x8]
	mov	w9, #8
	str	w9, [x8, #8]
	str	x20, [x20, #24]
Lloh7:
	adrp	x8, _set_input@GOTPAGE
Lloh8:
	ldr	x8, [x8, _set_input@GOTPAGEOFF]
	str	x8, [x19]
	add	x0, x20, #44
	add	x1, x22, #40
	bl	_list_add
	b	LBB0_11
LBB0_8:
	mov	x0, x22
	bl	_kfree
LBB0_9:
	mov	x0, x20
	bl	_kfree
LBB0_10:
	mov	x23, #0
LBB0_11:
	mov	x0, x23
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_mxllist,4,2                    ; @mxllist
	.comm	_mxl_ops,4,2                    ; @mxl_ops
.subsections_via_symbols
