	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usc_set_sync_mode
_usc_set_sync_mode:                     ## @usc_set_sync_mode
	.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, %rbx
	callq	_usc_loopback_frame
	movq	%rbx, %rdi
	callq	_usc_set_sdlc_mode
	movq	(%rbx), %rax
	movq	_MGSL_BUS_TYPE_ISA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_PCR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_usc_InReg
	movq	_BIT13@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_BIT12@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_usc_OutReg
LBB0_2:
	movl	16(%rbx), %esi
	movq	%rbx, %rdi
	callq	_usc_enable_aux_clock
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_usc_enable_loopback            ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MGSL_BUS_TYPE_ISA,8,3          ## @MGSL_BUS_TYPE_ISA
	.comm	_PCR,4,2                        ## @PCR
	.comm	_BIT13,4,2                      ## @BIT13
	.comm	_BIT12,4,2                      ## @BIT12
	.no_dead_strip	_usc_set_sync_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usc_set_sync_mode
_usc_set_sync_mode:                     ; @usc_set_sync_mode
	.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
	bl	_usc_loopback_frame
	mov	x0, x19
	bl	_usc_set_sdlc_mode
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _MGSL_BUS_TYPE_ISA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MGSL_BUS_TYPE_ISA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PCR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCR@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_usc_InReg
Lloh6:
	adrp	x8, _BIT13@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BIT13@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh9:
	adrp	x9, _BIT12@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BIT12@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	bic	w2, w8, w9
	mov	x0, x19
	mov	x1, x20
	bl	_usc_OutReg
LBB0_2:
	ldr	w1, [x19, #16]
	mov	x0, x19
	bl	_usc_enable_aux_clock
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_usc_enable_loopback
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MGSL_BUS_TYPE_ISA,8,3          ; @MGSL_BUS_TYPE_ISA
	.comm	_PCR,4,2                        ; @PCR
	.comm	_BIT13,4,2                      ; @BIT13
	.comm	_BIT12,4,2                      ; @BIT12
	.no_dead_strip	_usc_set_sync_mode
.subsections_via_symbols
