	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usc_reset
_usc_reset:                             ## @usc_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_MGSL_BUS_TYPE_PCI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	48(%r14), %rbx
	movq	_BIT30@GOTPCREL(%rip), %rax
	movl	40(%r14), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 40(%r14)
	movl	%ecx, 80(%rbx)
	movl	80(%rbx), %ecx
	movl	80(%rbx), %ecx
	movl	80(%rbx), %ecx
	movl	80(%rbx), %ecx
	movl	80(%rbx), %ecx
	movl	80(%rbx), %ecx
	movl	80(%rbx), %ecx
	movl	80(%rbx), %ecx
	movl	80(%rbx), %ecx
	movl	80(%rbx), %ecx
	movl	(%rax), %eax
	notl	%eax
	andl	40(%r14), %eax
	movl	%eax, 40(%r14)
	movl	%eax, 80(%rbx)
	movl	$1, %edi
	movl	$2, %esi
	movl	$2, %edx
	xorl	%ecx, %ecx
	movl	$4, %r8d
	xorl	%r9d, %r9d
	pushq	$5
	pushq	$0
	callq	_BUS_DESCRIPTOR
	addq	$16, %rsp
	movl	%eax, 40(%rbx)
	jmp	LBB0_3
LBB0_2:
	movq	8(%r14), %rsi
	addq	$8, %rsi
	xorl	%edi, %edi
	callq	_outb
LBB0_3:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	movq	$0, 32(%r14)
	movq	_SDPIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	$12, %edi
	callq	_outw
	movq	8(%r14), %rsi
	xorl	%edi, %edi
	callq	_outw
	movq	_CCAR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	xorl	%edi, %edi
	callq	_outw
	movq	_RTCmd_SelectLittleEndian@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_usc_RTCmd
	movq	_PCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$61685, %edx                    ## imm = 0xF0F5
	callq	_usc_OutReg
	movq	_IOCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$4, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_usc_OutReg                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MGSL_BUS_TYPE_PCI,8,3          ## @MGSL_BUS_TYPE_PCI
	.comm	_BIT30,4,2                      ## @BIT30
	.comm	_SDPIN,8,3                      ## @SDPIN
	.comm	_CCAR,8,3                       ## @CCAR
	.comm	_RTCmd_SelectLittleEndian,4,2   ## @RTCmd_SelectLittleEndian
	.comm	_PCR,4,2                        ## @PCR
	.comm	_IOCR,4,2                       ## @IOCR
	.no_dead_strip	_usc_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usc_reset
_usc_reset:                             ; @usc_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MGSL_BUS_TYPE_PCI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MGSL_BUS_TYPE_PCI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x20, [x19, #48]
Lloh3:
	adrp	x8, _BIT30@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BIT30@GOTPAGEOFF]
	ldr	w9, [x8]
	ldr	w10, [x19, #40]
	orr	w9, w10, w9
	str	w9, [x19, #40]
	str	w9, [x20, #80]
	ldr	wzr, [x20, #80]
	ldr	wzr, [x20, #80]
	ldr	wzr, [x20, #80]
	ldr	wzr, [x20, #80]
	ldr	wzr, [x20, #80]
	ldr	wzr, [x20, #80]
	ldr	wzr, [x20, #80]
	ldr	wzr, [x20, #80]
	ldr	wzr, [x20, #80]
	ldr	wzr, [x20, #80]
	ldr	w8, [x8]
	ldr	w9, [x19, #40]
	bic	w8, w9, w8
	str	w8, [x19, #40]
	str	w8, [x20, #80]
	mov	w0, #1
	mov	w1, #2
	mov	w2, #2
	mov	w3, #0
	mov	w4, #4
	mov	w5, #0
	mov	w6, #0
	mov	w7, #5
	bl	_BUS_DESCRIPTOR
	str	w0, [x20, #40]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19, #8]
	add	x1, x8, #8
	mov	w0, #0
	bl	_outb
LBB0_3:
	stp	xzr, xzr, [x19, #16]
	str	xzr, [x19, #32]
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _SDPIN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SDPIN@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #12
	bl	_outw
	ldr	x1, [x19, #8]
	mov	w0, #0
	bl	_outw
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _CCAR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CCAR@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_outw
Lloh11:
	adrp	x8, _RTCmd_SelectLittleEndian@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RTCmd_SelectLittleEndian@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_usc_RTCmd
Lloh14:
	adrp	x8, _PCR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #61685
	bl	_usc_OutReg
Lloh17:
	adrp	x8, _IOCR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IOCR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_usc_OutReg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MGSL_BUS_TYPE_PCI,8,3          ; @MGSL_BUS_TYPE_PCI
	.comm	_BIT30,4,2                      ; @BIT30
	.comm	_SDPIN,8,3                      ; @SDPIN
	.comm	_CCAR,8,3                       ; @CCAR
	.comm	_RTCmd_SelectLittleEndian,4,2   ; @RTCmd_SelectLittleEndian
	.comm	_PCR,4,2                        ; @PCR
	.comm	_IOCR,4,2                       ; @IOCR
	.no_dead_strip	_usc_reset
.subsections_via_symbols
