	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hda_update_intr
_hda_update_intr:                       ## @hda_update_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	%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
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_HDAC_INTCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hda_get_reg_by_offset
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_HDAC_RIRBSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_hda_get_reg_by_offset
	movq	_HDAC_RIRBSTS_RINTFL@GOTPCREL(%rip), %rcx
	movq	_HDAC_RIRBSTS_RIRBOIS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	movq	_HDAC_INTSTS_CIS@GOTPCREL(%rip), %r15
	andl	%eax, %ebx
	je	LBB0_2
## %bb.1:
	movl	(%r15), %ebx
LBB0_2:
	movq	_HDAC_WAKEEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_hda_get_reg_by_offset
	movl	%eax, %r14d
	movq	_HDAC_STATESTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_hda_get_reg_by_offset
	movl	%eax, %r13d
	andl	%r14d, %r13d
	je	LBB0_4
## %bb.3:
	movl	(%r15), %r13d
LBB0_4:
	orl	%ebx, %r13d
	movq	_HDA_IOSS_NO@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.5:
	xorl	%ebx, %ebx
	movq	_HDAC_SDSTS@GOTPCREL(%rip), %r15
	movq	_HDAC_SDSTS_BCIS@GOTPCREL(%rip), %r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	orl	%eax, %r13d
	incl	%ebx
	movq	_HDA_IOSS_NO@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_hda_get_offset_stream
	addl	(%r15), %eax
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_hda_get_reg_by_offset
	andl	(%r14), %eax
	movl	$1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%edx, %eax
	jmp	LBB0_8
LBB0_9:
	movq	_HDAC_INTSTS_GIS@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	orl	%r13d, %ebx
	testl	%r13d, %r13d
	cmovel	%r13d, %ebx
	movq	_HDAC_INTSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_hda_set_reg_by_offset
	movq	_HDAC_INTCTL_GIE@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_13
## %bb.10:
	movl	(%r14), %eax
	notl	%eax
	andl	%ecx, %ebx
	testl	%eax, %ebx
	je	LBB0_13
## %bb.11:
	cmpl	$0, (%r12)
	jne	LBB0_15
## %bb.12:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_pci_lintr_assert
	movl	$1, (%r12)
	jmp	LBB0_15
LBB0_13:
	cmpl	$0, (%r12)
	je	LBB0_15
## %bb.14:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_pci_lintr_deassert
	movl	$0, (%r12)
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDAC_INTCTL,4,2                ## @HDAC_INTCTL
	.comm	_HDAC_RIRBSTS,4,2               ## @HDAC_RIRBSTS
	.comm	_HDAC_RIRBSTS_RINTFL,4,2        ## @HDAC_RIRBSTS_RINTFL
	.comm	_HDAC_RIRBSTS_RIRBOIS,4,2       ## @HDAC_RIRBSTS_RIRBOIS
	.comm	_HDAC_INTSTS_CIS,4,2            ## @HDAC_INTSTS_CIS
	.comm	_HDAC_WAKEEN,4,2                ## @HDAC_WAKEEN
	.comm	_HDAC_STATESTS,4,2              ## @HDAC_STATESTS
	.comm	_HDA_IOSS_NO,4,2                ## @HDA_IOSS_NO
	.comm	_HDAC_SDSTS,4,2                 ## @HDAC_SDSTS
	.comm	_HDAC_SDSTS_BCIS,4,2            ## @HDAC_SDSTS_BCIS
	.comm	_HDAC_INTSTS_GIS,4,2            ## @HDAC_INTSTS_GIS
	.comm	_HDAC_INTSTS,4,2                ## @HDAC_INTSTS
	.comm	_HDAC_INTCTL_GIE,4,2            ## @HDAC_INTCTL_GIE
	.no_dead_strip	_hda_update_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hda_update_intr
_hda_update_intr:                       ; @hda_update_intr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _HDAC_INTCTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDAC_INTCTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_hda_get_reg_by_offset
	mov	x21, x0
Lloh3:
	adrp	x8, _HDAC_RIRBSTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDAC_RIRBSTS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hda_get_reg_by_offset
Lloh6:
	adrp	x8, _HDAC_RIRBSTS_RINTFL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HDAC_RIRBSTS_RINTFL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _HDAC_RIRBSTS_RIRBOIS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HDAC_RIRBSTS_RIRBOIS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x23, _HDAC_INTSTS_CIS@GOTPAGE
Lloh13:
	ldr	x23, [x23, _HDAC_INTSTS_CIS@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w8, w0
	csel	w24, wzr, w9, eq
Lloh14:
	adrp	x8, _HDAC_WAKEEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HDAC_WAKEEN@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hda_get_reg_by_offset
	mov	x22, x0
Lloh17:
	adrp	x8, _HDAC_STATESTS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HDAC_STATESTS@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hda_get_reg_by_offset
	ldr	w8, [x23]
	tst	w0, w22
	csel	w8, wzr, w8, eq
	orr	w23, w8, w24
Lloh20:
	adrp	x24, _HDA_IOSS_NO@GOTPAGE
Lloh21:
	ldr	x24, [x24, _HDA_IOSS_NO@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w22, #0
Lloh22:
	adrp	x25, _HDAC_SDSTS@GOTPAGE
Lloh23:
	ldr	x25, [x25, _HDAC_SDSTS@GOTPAGEOFF]
Lloh24:
	adrp	x26, _HDAC_SDSTS_BCIS@GOTPAGE
Lloh25:
	ldr	x26, [x26, _HDAC_SDSTS_BCIS@GOTPAGEOFF]
	mov	w27, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_hda_get_offset_stream
	ldr	w8, [x25]
	add	w1, w8, w0
	mov	x0, x19
	bl	_hda_get_reg_by_offset
	ldr	w8, [x26]
	lsl	w9, w27, w22
	tst	w8, w0
	csel	w8, wzr, w9, eq
	orr	w23, w8, w23
	add	w22, w22, #1
	ldr	w8, [x24]
	cmp	w22, w8
	b.lt	LBB0_2
LBB0_3:
Lloh26:
	adrp	x24, _HDAC_INTSTS_GIS@GOTPAGE
Lloh27:
	ldr	x24, [x24, _HDAC_INTSTS_GIS@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w8, w8, w23
	cmp	w23, #0
	csel	w22, wzr, w8, eq
Lloh28:
	adrp	x8, _HDAC_INTSTS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HDAC_INTSTS@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_hda_set_reg_by_offset
Lloh31:
	adrp	x8, _HDAC_INTCTL_GIE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _HDAC_INTCTL_GIE@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.4:
	ldr	w8, [x24]
	and	w9, w22, w21
	bics	wzr, w9, w8
	b.eq	LBB0_7
; %bb.5:
	ldr	w8, [x19]
	cbnz	w8, LBB0_9
; %bb.6:
	mov	x0, x20
	bl	_pci_lintr_assert
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_9
LBB0_7:
	ldr	w8, [x19]
	cbz	w8, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_pci_lintr_deassert
	str	wzr, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_HDAC_INTCTL,4,2                ; @HDAC_INTCTL
	.comm	_HDAC_RIRBSTS,4,2               ; @HDAC_RIRBSTS
	.comm	_HDAC_RIRBSTS_RINTFL,4,2        ; @HDAC_RIRBSTS_RINTFL
	.comm	_HDAC_RIRBSTS_RIRBOIS,4,2       ; @HDAC_RIRBSTS_RIRBOIS
	.comm	_HDAC_INTSTS_CIS,4,2            ; @HDAC_INTSTS_CIS
	.comm	_HDAC_WAKEEN,4,2                ; @HDAC_WAKEEN
	.comm	_HDAC_STATESTS,4,2              ; @HDAC_STATESTS
	.comm	_HDA_IOSS_NO,4,2                ; @HDA_IOSS_NO
	.comm	_HDAC_SDSTS,4,2                 ; @HDAC_SDSTS
	.comm	_HDAC_SDSTS_BCIS,4,2            ; @HDAC_SDSTS_BCIS
	.comm	_HDAC_INTSTS_GIS,4,2            ; @HDAC_INTSTS_GIS
	.comm	_HDAC_INTSTS,4,2                ; @HDAC_INTSTS
	.comm	_HDAC_INTCTL_GIE,4,2            ; @HDAC_INTCTL_GIE
	.no_dead_strip	_hda_update_intr
.subsections_via_symbols
