	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_audio_component_sync_audio_rate
_i915_audio_component_sync_audio_rate:  ## @i915_audio_component_sync_audio_rate
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movl	%esi, %r13d
	movq	%rdi, %r14
	callq	_kdev_to_i915
	movq	%rax, %r12
	movq	8(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_HAS_DDI
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_i915_audio_component_get_power
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	callq	_get_saved_enc
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rbx
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_4
## %bb.5:
	callq	_to_intel_crtc
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movslq	%r13d, %rdx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, (%rcx,%rdx,4)
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hsw_audio_config_update
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_4:
	movl	%r13d, %edi
	callq	_port_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_i915_audio_component_put_power
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not valid for port %c\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_i915_audio_component_sync_audio_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_audio_component_sync_audio_rate
_i915_audio_component_sync_audio_rate:  ; @i915_audio_component_sync_audio_rate
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x3
	mov	x24, x2
	mov	x22, x1
	mov	x19, x0
	bl	_kdev_to_i915
	mov	x20, x0
	ldr	x25, [x0, #8]
	bl	_HAS_DDI
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_i915_audio_component_get_power
	mov	x21, x0
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x20
	mov	x1, x22
	mov	x2, x24
	bl	_get_saved_enc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x24, x0
	ldr	w0, [x0]
	cbz	w0, LBB0_5
; %bb.3:
	bl	_to_intel_crtc
	ldr	x8, [x25]
	str	w23, [x8, w22, sxtw #2]
	ldr	w1, [x0]
	mov	x0, x24
	bl	_hsw_audio_config_update
	mov	w22, #0
	b	LBB0_6
LBB0_4:
	mov	w22, #0
	b	LBB0_7
LBB0_5:
	mov	x0, x22
	bl	_port_name
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	mov	x1, x21
	bl	_i915_audio_component_put_power
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not valid for port %c\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_i915_audio_component_sync_audio_rate
.subsections_via_symbols
