	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stdclock_set_mclk
_stdclock_set_mclk:                     ## @stdclock_set_mclk
	.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
	movq	(%rdi), %rax
	movq	_ICE_EEP2_ACLINK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_VT1724_CFG_PRO_I2S@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_3
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	_I2S_FORMAT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_ICEMT1724
	movl	%eax, %edi
	callq	_inb
	movq	_VT1724_MT_I2S_MCLK_128X@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%ecx, %edx
	orb	%al, %dl
	notb	%cl
	andb	%al, %cl
	cmpl	$96001, %r14d                   ## imm = 0x17701
	movzbl	%dl, %edx
	movzbl	%cl, %ebx
	cmovael	%edx, %ebx
	cmpb	%al, %bl
	jne	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_ICEMT1724
	movzbl	%bl, %edi
	movl	%eax, %esi
	callq	_outb
	movb	$1, %al
LBB0_5:
	movzbl	%al, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_EEP2_ACLINK,8,3            ## @ICE_EEP2_ACLINK
	.comm	_VT1724_CFG_PRO_I2S,4,2         ## @VT1724_CFG_PRO_I2S
	.comm	_I2S_FORMAT,4,2                 ## @I2S_FORMAT
	.comm	_VT1724_MT_I2S_MCLK_128X,1,0    ## @VT1724_MT_I2S_MCLK_128X
	.no_dead_strip	_stdclock_set_mclk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stdclock_set_mclk
_stdclock_set_mclk:                     ; @stdclock_set_mclk
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ICE_EEP2_ACLINK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ICE_EEP2_ACLINK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh3:
	adrp	x9, _VT1724_CFG_PRO_I2S@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VT1724_CFG_PRO_I2S@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh6:
	adrp	x21, _I2S_FORMAT@GOTPAGE
Lloh7:
	ldr	x21, [x21, _I2S_FORMAT@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_ICEMT1724
	bl	_inb
Lloh8:
	adrp	x8, _VT1724_MT_I2S_MCLK_128X@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VT1724_MT_I2S_MCLK_128X@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w9, w8, w0
	bic	w8, w0, w8
	mov	w10, #30464
	movk	w10, #1, lsl #16
	cmp	w20, w10
	csel	w20, w9, w8, hi
	cmp	w0, w20, uxtb
	b.ne	LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ICEMT1724
	mov	x1, x0
	and	w0, w20, #0xff
	bl	_outb
	mov	w0, #1
LBB0_4:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_EEP2_ACLINK,8,3            ; @ICE_EEP2_ACLINK
	.comm	_VT1724_CFG_PRO_I2S,4,2         ; @VT1724_CFG_PRO_I2S
	.comm	_I2S_FORMAT,4,2                 ; @I2S_FORMAT
	.comm	_VT1724_MT_I2S_MCLK_128X,1,0    ; @VT1724_MT_I2S_MCLK_128X
	.no_dead_strip	_stdclock_set_mclk
.subsections_via_symbols
