	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usc_enable_loopback
_usc_enable_loopback:                   ## @usc_enable_loopback
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_IOCR@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movl	%ebx, %esi
	callq	_usc_InReg
	movq	_BIT7@GOTPCREL(%rip), %rcx
	movq	_BIT6@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	addl	(%rcx), %edx
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.1:
	orl	%eax, %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_usc_OutReg
	movq	_CMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$3940, %edx                     ## imm = 0xF64
	callq	_usc_OutReg
	movl	24(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.2:
	movq	(%r14), %rax
	movq	_MGSL_BUS_TYPE_PCI@GOTPCREL(%rip), %rdx
	movq	_TC0R@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpq	(%rdx), %rax
	jne	LBB0_5
## %bb.3:
	movl	$11059200, %eax                 ## imm = 0xA8C000
	jmp	LBB0_4
LBB0_8:
	notl	%edx
	andl	%edx, %eax
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_usc_OutReg
	xorl	%edi, %edi
	jmp	LBB0_9
LBB0_6:
	movq	_TC0R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$8, %edx
	jmp	LBB0_7
LBB0_5:
	movl	$14745600, %eax                 ## imm = 0xE10000
LBB0_4:
	xorl	%edx, %edx
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %edx
	movq	%r14, %rdi
LBB0_7:
	callq	_usc_OutReg
	movq	_HCR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_usc_InReg
	movq	_BIT1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_BIT0@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_usc_OutReg
	movl	(%r12), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_usc_InReg
                                        ## kill: def $eax killed $eax def $rax
	andl	$65528, %eax                    ## imm = 0xFFF8
	leal	4(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_usc_OutReg
	movl	$768, %edi                      ## imm = 0x300
LBB0_9:
	movl	%edi, 8(%r14)
	movq	_CCAR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r14), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outw                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IOCR,4,2                       ## @IOCR
	.comm	_BIT7,4,2                       ## @BIT7
	.comm	_BIT6,4,2                       ## @BIT6
	.comm	_CMCR,4,2                       ## @CMCR
	.comm	_MGSL_BUS_TYPE_PCI,8,3          ## @MGSL_BUS_TYPE_PCI
	.comm	_TC0R,4,2                       ## @TC0R
	.comm	_HCR,4,2                        ## @HCR
	.comm	_BIT1,4,2                       ## @BIT1
	.comm	_BIT0,4,2                       ## @BIT0
	.comm	_CCAR,8,3                       ## @CCAR
	.no_dead_strip	_usc_enable_loopback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usc_enable_loopback
_usc_enable_loopback:                   ; @usc_enable_loopback
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _IOCR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IOCR@GOTPAGEOFF]
	ldr	w20, [x22]
	mov	x1, x20
	bl	_usc_InReg
Lloh2:
	adrp	x8, _BIT7@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BIT7@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _BIT6@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BIT6@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	add	w8, w9, w8
	cbz	w21, LBB0_4
; %bb.1:
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x20
	bl	_usc_OutReg
Lloh8:
	adrp	x8, _CMCR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CMCR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #3940
	bl	_usc_OutReg
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_5
; %bb.2:
Lloh11:
	adrp	x9, _MGSL_BUS_TYPE_PCI@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MGSL_BUS_TYPE_PCI@GOTPAGEOFF]
	ldr	x10, [x19]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x11, _TC0R@GOTPAGE
Lloh15:
	ldr	x11, [x11, _TC0R@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x11]
	cmp	x10, x9
	b.ne	LBB0_6
; %bb.3:
	mov	w9, #49152
	movk	w9, #168, lsl #16
	b	LBB0_7
LBB0_4:
	bic	w2, w0, w8
	mov	x0, x19
	mov	x1, x20
	bl	_usc_OutReg
	mov	w0, #0
	b	LBB0_9
LBB0_5:
Lloh17:
	adrp	x8, _TC0R@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TC0R@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #8
	b	LBB0_8
LBB0_6:
	mov	w9, #14745600
LBB0_7:
	sdiv	w8, w9, w8
	sub	w2, w8, #1
	mov	x0, x19
LBB0_8:
	bl	_usc_OutReg
Lloh20:
	adrp	x8, _HCR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HCR@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_usc_InReg
Lloh23:
	adrp	x8, _BIT1@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BIT1@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh26:
	adrp	x9, _BIT0@GOTPAGE
Lloh27:
	ldr	x9, [x9, _BIT0@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	mov	x1, x20
	bl	_usc_OutReg
	ldr	w20, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_usc_InReg
	and	w8, w0, #0xfff8
	orr	w2, w8, #0x4
	mov	x0, x19
	mov	x1, x20
	bl	_usc_OutReg
	mov	w0, #768
LBB0_9:
	str	w0, [x19, #8]
	ldr	x8, [x19, #16]
Lloh29:
	adrp	x9, _CCAR@GOTPAGE
Lloh30:
	ldr	x9, [x9, _CCAR@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	add	x1, x9, x8
	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	_outw
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_IOCR,4,2                       ; @IOCR
	.comm	_BIT7,4,2                       ; @BIT7
	.comm	_BIT6,4,2                       ; @BIT6
	.comm	_CMCR,4,2                       ; @CMCR
	.comm	_MGSL_BUS_TYPE_PCI,8,3          ; @MGSL_BUS_TYPE_PCI
	.comm	_TC0R,4,2                       ; @TC0R
	.comm	_HCR,4,2                        ; @HCR
	.comm	_BIT1,4,2                       ; @BIT1
	.comm	_BIT0,4,2                       ; @BIT0
	.comm	_CCAR,8,3                       ; @CCAR
	.no_dead_strip	_usc_enable_loopback
.subsections_via_symbols
