	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hda_intr
_hda_intr:                              ## @hda_intr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$0, 8(%rdi)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movq	_HDMI_NV_PDISP_SOR_AUDIO_HDA_CODEC_SCRATCH0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RD4
	testl	$1073741824, %eax               ## imm = 0x40000000
	je	LBB0_5
## %bb.2:
	movl	%eax, %edx
	andl	$16777215, %edx                 ## imm = 0xFFFFFF
	movl	%edx, (%rbx)
	shrl	$24, %eax
	andl	$15, %eax
	movl	%eax, 4(%rbx)
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
	movq	%rbx, %rdi
	callq	_audio_setup
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_audio_disable                  ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_audio_enable                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_NV_PDISP_SOR_AUDIO_HDA_CODEC_SCRATCH0,4,2 ## @HDMI_NV_PDISP_SOR_AUDIO_HDA_CODEC_SCRATCH0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d channel(s) at %dHz\n"

	.no_dead_strip	_hda_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hda_intr
_hda_intr:                              ; @hda_intr
	.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
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _HDMI_NV_PDISP_SOR_AUDIO_HDA_CODEC_SCRATCH0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI_NV_PDISP_SOR_AUDIO_HDA_CODEC_SCRATCH0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_RD4
	tbz	w0, #30, LBB0_3
; %bb.2:
	and	w2, w0, #0xffffff
	ubfx	w1, w0, #24, #4
	stp	w2, w1, [x19]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	bl	_audio_setup
	cbz	w0, LBB0_5
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_audio_disable
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_audio_enable
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_NV_PDISP_SOR_AUDIO_HDA_CODEC_SCRATCH0,4,2 ; @HDMI_NV_PDISP_SOR_AUDIO_HDA_CODEC_SCRATCH0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d channel(s) at %dHz\n"

	.no_dead_strip	_hda_intr
.subsections_via_symbols
