	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usc_enable_aux_clock
_usc_enable_aux_clock:                  ## @usc_enable_aux_clock
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rax
	movq	_MGSL_BUS_TYPE_PCI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$11059200, %ecx                 ## imm = 0xA8C000
	movl	$14745600, %eax                 ## imm = 0xE10000
	cmovel	%ecx, %eax
	xorl	%edx, %edx
	idivl	%esi
                                        ## kill: def $edx killed $edx def $rdx
	movslq	%eax, %rcx
	leal	(%rdx,%rdx), %eax
	cltd
	idivl	%esi
	cmpl	$1, %eax
	sbbq	$0, %rcx
	movq	_TC0R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rcx, %rdx
	callq	_usc_OutReg
	movq	_HCR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_usc_InReg
	movq	_BIT1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_BIT0@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movslq	%ecx, %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_usc_OutReg
	movq	_IOCR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_usc_InReg
                                        ## kill: def $eax killed $eax def $rax
	andl	$65528, %eax                    ## imm = 0xFFF8
	leal	4(%rax), %edx
	jmp	LBB0_3
LBB0_2:
	movq	_HCR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_usc_InReg
	movq	_BIT0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movslq	%ecx, %rdx
LBB0_3:
	movq	%r15, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usc_OutReg                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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	_IOCR,4,2                       ## @IOCR
	.no_dead_strip	_usc_enable_aux_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usc_enable_aux_clock
_usc_enable_aux_clock:                  ; @usc_enable_aux_clock
	.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
	cbz	w1, LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _MGSL_BUS_TYPE_PCI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MGSL_BUS_TYPE_PCI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #14745600
	mov	w9, #49152
	movk	w9, #168, lsl #16
	csel	w8, w9, w8, eq
	sdiv	w9, w8, w1
	sxtw	x10, w9
	msub	w8, w9, w1, w8
	lsl	w8, w8, #1
	sdiv	w8, w8, w1
	cmp	w8, #0
	cset	w8, eq
	sub	x2, x10, x8
Lloh3:
	adrp	x8, _TC0R@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TC0R@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_usc_OutReg
Lloh6:
	adrp	x8, _HCR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HCR@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_usc_InReg
Lloh9:
	adrp	x8, _BIT1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BIT1@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh12:
	adrp	x9, _BIT0@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BIT0@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	sxtw	x2, w8
	mov	x0, x19
	mov	x1, x20
	bl	_usc_OutReg
Lloh15:
	adrp	x8, _IOCR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IOCR@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_usc_InReg
	and	w8, w0, #0xfff8
	orr	w2, w8, #0x4
	b	LBB0_3
LBB0_2:
Lloh18:
	adrp	x8, _HCR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HCR@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_usc_InReg
Lloh21:
	adrp	x8, _BIT0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BIT0@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	bic	w8, w0, w8
	sxtw	x2, w8
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_usc_OutReg
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.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	_IOCR,4,2                       ; @IOCR
	.no_dead_strip	_usc_enable_aux_clock
.subsections_via_symbols
