	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsc7326_mac_create
_vsc7326_mac_create:                    ## @vsc7326_mac_create
	.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, %r15d
	movq	%rdi, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_vsc7326_ops@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 16(%rcx)
	movq	%rcx, %rax
	addq	$24, %rax
	movq	%rax, (%rcx)
	movq	%r13, 8(%rcx)
	movl	%r15d, 24(%rcx)
	movq	$0, 32(%rcx)
	xorl	%ebx, %ebx
	movq	_REG_LOCAL_STATUS@GOTPCREL(%rip), %r14
	leaq	-44(%rbp), %r15
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, -44(%rbp)
	movl	$0, -48(%rbp)
	movl	(%r14), %eax
	leal	4(,%rax,4), %esi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_t1_tpi_read
	movl	$1, %edi
	callq	_udelay
	movl	(%r14), %esi
	shll	$2, %esi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_t1_tpi_read
	movl	$5, %edi
	callq	_udelay
	cmpl	$9998, %ebx                     ## imm = 0x270E
	ja	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %eax
	shll	$16, %eax
	orl	-44(%rbp), %eax
	incl	%ebx
	cmpl	$-1, %eax
	je	LBB0_2
LBB0_4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	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	_vsc7326_ops,4,2                ## @vsc7326_ops
	.comm	_REG_LOCAL_STATUS,4,2           ## @REG_LOCAL_STATUS
	.no_dead_strip	_vsc7326_mac_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsc7326_mac_create
_vsc7326_mac_create:                    ; @vsc7326_mac_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.1:
	mov	w22, #0
Lloh3:
	adrp	x8, _vsc7326_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vsc7326_ops@GOTPAGEOFF]
	stp	x19, x8, [x20, #8]
	mov	x8, x20
	str	w21, [x8, #24]!
	str	x8, [x20]
	str	xzr, [x20, #32]
Lloh5:
	adrp	x21, _REG_LOCAL_STATUS@GOTPAGE
Lloh6:
	ldr	x21, [x21, _REG_LOCAL_STATUS@GOTPAGEOFF]
	mov	w23, #9998
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [sp, #8]
	ldr	w8, [x21]
	lsl	w8, w8, #2
	add	w1, w8, #4
	add	x2, sp, #8
	mov	x0, x19
	bl	_t1_tpi_read
	mov	w0, #1
	bl	_udelay
	ldr	w8, [x21]
	lsl	w1, w8, #2
	add	x2, sp, #12
	mov	x0, x19
	bl	_t1_tpi_read
	mov	w0, #5
	bl	_udelay
	cmp	w22, w23
	b.hi	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w9, w8, [sp, #8]
	orr	w8, w9, w8, lsl #16
	add	w22, w22, #1
	cmn	w8, #1
	b.eq	LBB0_2
LBB0_4:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_vsc7326_ops,4,2                ; @vsc7326_ops
	.comm	_REG_LOCAL_STATUS,4,2           ; @REG_LOCAL_STATUS
	.no_dead_strip	_vsc7326_mac_create
.subsections_via_symbols
