	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cobalt_set_interrupt
_cobalt_set_interrupt:                  ## @cobalt_set_interrupt
	.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, %r14
	testl	%esi, %esi
	je	LBB0_6
## %bb.1:
	movq	_COBALT_SYSSTAT_VI0_INT1_MSK@GOTPCREL(%rip), %rax
	movq	_COBALT_SYSSTAT_VI1_INT1_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_COBALT_SYSSTAT_VI2_INT1_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_COBALT_SYSSTAT_VI3_INT1_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_COBALT_SYSSTAT_VI0_INT2_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_COBALT_SYSSTAT_VI1_INT2_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_COBALT_SYSSTAT_VI2_INT2_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_COBALT_SYSSTAT_VI3_INT2_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_COBALT_SYSSTAT_VI0_LOST_DATA_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_COBALT_SYSSTAT_VI1_LOST_DATA_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_COBALT_SYSSTAT_VI2_LOST_DATA_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_COBALT_SYSSTAT_VI3_LOST_DATA_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_COBALT_SYSSTAT_AUD_IN_LOST_DATA_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	cmpq	$0, 8(%r14)
	je	LBB0_3
## %bb.2:
	movq	_COBALT_SYSSTAT_VIHSMA_INT1_MSK@GOTPCREL(%rip), %rax
	movq	_COBALT_SYSSTAT_VIHSMA_INT2_MSK@GOTPCREL(%rip), %rcx
	movq	_COBALT_SYSSTAT_VIHSMA_LOST_DATA_MSK@GOTPCREL(%rip), %rdx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
LBB0_3:
	cmpq	$0, (%r14)
	je	LBB0_5
## %bb.4:
	movq	_COBALT_SYSSTAT_VOHSMA_INT1_MSK@GOTPCREL(%rip), %rax
	movq	_COBALT_SYSSTAT_VOHSMA_LOST_DATA_MSK@GOTPCREL(%rip), %rcx
	movq	_COBALT_SYSSTAT_AUD_OUT_LOST_DATA_MSK@GOTPCREL(%rip), %rdx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
LBB0_5:
	movq	_COBALT_SYS_STAT_EDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	callq	_cobalt_write_bar1
	movq	_COBALT_SYS_STAT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	jmp	LBB0_7
LBB0_6:
	movq	_COBALT_SYS_STAT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cobalt_write_bar1              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_COBALT_SYSSTAT_VI0_INT1_MSK,4,2 ## @COBALT_SYSSTAT_VI0_INT1_MSK
	.comm	_COBALT_SYSSTAT_VI1_INT1_MSK,4,2 ## @COBALT_SYSSTAT_VI1_INT1_MSK
	.comm	_COBALT_SYSSTAT_VI2_INT1_MSK,4,2 ## @COBALT_SYSSTAT_VI2_INT1_MSK
	.comm	_COBALT_SYSSTAT_VI3_INT1_MSK,4,2 ## @COBALT_SYSSTAT_VI3_INT1_MSK
	.comm	_COBALT_SYSSTAT_VI0_INT2_MSK,4,2 ## @COBALT_SYSSTAT_VI0_INT2_MSK
	.comm	_COBALT_SYSSTAT_VI1_INT2_MSK,4,2 ## @COBALT_SYSSTAT_VI1_INT2_MSK
	.comm	_COBALT_SYSSTAT_VI2_INT2_MSK,4,2 ## @COBALT_SYSSTAT_VI2_INT2_MSK
	.comm	_COBALT_SYSSTAT_VI3_INT2_MSK,4,2 ## @COBALT_SYSSTAT_VI3_INT2_MSK
	.comm	_COBALT_SYSSTAT_VI0_LOST_DATA_MSK,4,2 ## @COBALT_SYSSTAT_VI0_LOST_DATA_MSK
	.comm	_COBALT_SYSSTAT_VI1_LOST_DATA_MSK,4,2 ## @COBALT_SYSSTAT_VI1_LOST_DATA_MSK
	.comm	_COBALT_SYSSTAT_VI2_LOST_DATA_MSK,4,2 ## @COBALT_SYSSTAT_VI2_LOST_DATA_MSK
	.comm	_COBALT_SYSSTAT_VI3_LOST_DATA_MSK,4,2 ## @COBALT_SYSSTAT_VI3_LOST_DATA_MSK
	.comm	_COBALT_SYSSTAT_AUD_IN_LOST_DATA_MSK,4,2 ## @COBALT_SYSSTAT_AUD_IN_LOST_DATA_MSK
	.comm	_COBALT_SYSSTAT_VIHSMA_INT1_MSK,4,2 ## @COBALT_SYSSTAT_VIHSMA_INT1_MSK
	.comm	_COBALT_SYSSTAT_VIHSMA_INT2_MSK,4,2 ## @COBALT_SYSSTAT_VIHSMA_INT2_MSK
	.comm	_COBALT_SYSSTAT_VIHSMA_LOST_DATA_MSK,4,2 ## @COBALT_SYSSTAT_VIHSMA_LOST_DATA_MSK
	.comm	_COBALT_SYSSTAT_VOHSMA_INT1_MSK,4,2 ## @COBALT_SYSSTAT_VOHSMA_INT1_MSK
	.comm	_COBALT_SYSSTAT_VOHSMA_LOST_DATA_MSK,4,2 ## @COBALT_SYSSTAT_VOHSMA_LOST_DATA_MSK
	.comm	_COBALT_SYSSTAT_AUD_OUT_LOST_DATA_MSK,4,2 ## @COBALT_SYSSTAT_AUD_OUT_LOST_DATA_MSK
	.comm	_COBALT_SYS_STAT_EDGE,4,2       ## @COBALT_SYS_STAT_EDGE
	.comm	_COBALT_SYS_STAT_MASK,4,2       ## @COBALT_SYS_STAT_MASK
	.no_dead_strip	_cobalt_set_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cobalt_set_interrupt
_cobalt_set_interrupt:                  ; @cobalt_set_interrupt
	.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
	cbz	w1, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _COBALT_SYSSTAT_VI0_INT1_MSK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COBALT_SYSSTAT_VI0_INT1_MSK@GOTPAGEOFF]
Lloh2:
	adrp	x9, _COBALT_SYSSTAT_VI1_INT1_MSK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _COBALT_SYSSTAT_VI1_INT1_MSK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _COBALT_SYSSTAT_VI2_INT1_MSK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _COBALT_SYSSTAT_VI2_INT1_MSK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _COBALT_SYSSTAT_VI3_INT1_MSK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _COBALT_SYSSTAT_VI3_INT1_MSK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _COBALT_SYSSTAT_VI0_INT2_MSK@GOTPAGE
Lloh13:
	ldr	x10, [x10, _COBALT_SYSSTAT_VI0_INT2_MSK@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh14:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _COBALT_SYSSTAT_VI1_INT2_MSK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _COBALT_SYSSTAT_VI1_INT2_MSK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _COBALT_SYSSTAT_VI2_INT2_MSK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _COBALT_SYSSTAT_VI2_INT2_MSK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _COBALT_SYSSTAT_VI3_INT2_MSK@GOTPAGE
Lloh22:
	ldr	x10, [x10, _COBALT_SYSSTAT_VI3_INT2_MSK@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh23:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _COBALT_SYSSTAT_VI0_LOST_DATA_MSK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _COBALT_SYSSTAT_VI0_LOST_DATA_MSK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _COBALT_SYSSTAT_VI1_LOST_DATA_MSK@GOTPAGE
Lloh28:
	ldr	x9, [x9, _COBALT_SYSSTAT_VI1_LOST_DATA_MSK@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
Lloh30:
	adrp	x10, _COBALT_SYSSTAT_VI2_LOST_DATA_MSK@GOTPAGE
Lloh31:
	ldr	x10, [x10, _COBALT_SYSSTAT_VI2_LOST_DATA_MSK@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh32:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh33:
	adrp	x9, _COBALT_SYSSTAT_VI3_LOST_DATA_MSK@GOTPAGE
Lloh34:
	ldr	x9, [x9, _COBALT_SYSSTAT_VI3_LOST_DATA_MSK@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh36:
	adrp	x9, _COBALT_SYSSTAT_AUD_IN_LOST_DATA_MSK@GOTPAGE
Lloh37:
	ldr	x9, [x9, _COBALT_SYSSTAT_AUD_IN_LOST_DATA_MSK@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w20, w8, w9
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh39:
	adrp	x8, _COBALT_SYSSTAT_VIHSMA_INT1_MSK@GOTPAGE
Lloh40:
	ldr	x8, [x8, _COBALT_SYSSTAT_VIHSMA_INT1_MSK@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
Lloh42:
	adrp	x9, _COBALT_SYSSTAT_VIHSMA_INT2_MSK@GOTPAGE
Lloh43:
	ldr	x9, [x9, _COBALT_SYSSTAT_VIHSMA_INT2_MSK@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
Lloh45:
	adrp	x10, _COBALT_SYSSTAT_VIHSMA_LOST_DATA_MSK@GOTPAGE
Lloh46:
	ldr	x10, [x10, _COBALT_SYSSTAT_VIHSMA_LOST_DATA_MSK@GOTPAGEOFF]
Lloh47:
	ldr	w10, [x10]
	orr	w8, w8, w20
	orr	w8, w8, w9
	orr	w20, w8, w10
LBB0_3:
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.4:
Lloh48:
	adrp	x8, _COBALT_SYSSTAT_VOHSMA_INT1_MSK@GOTPAGE
Lloh49:
	ldr	x8, [x8, _COBALT_SYSSTAT_VOHSMA_INT1_MSK@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
Lloh51:
	adrp	x9, _COBALT_SYSSTAT_VOHSMA_LOST_DATA_MSK@GOTPAGE
Lloh52:
	ldr	x9, [x9, _COBALT_SYSSTAT_VOHSMA_LOST_DATA_MSK@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
Lloh54:
	adrp	x10, _COBALT_SYSSTAT_AUD_OUT_LOST_DATA_MSK@GOTPAGE
Lloh55:
	ldr	x10, [x10, _COBALT_SYSSTAT_AUD_OUT_LOST_DATA_MSK@GOTPAGEOFF]
Lloh56:
	ldr	w10, [x10]
	orr	w8, w8, w20
	orr	w8, w8, w9
	orr	w20, w8, w10
LBB0_5:
Lloh57:
	adrp	x8, _COBALT_SYS_STAT_EDGE@GOTPAGE
Lloh58:
	ldr	x8, [x8, _COBALT_SYS_STAT_EDGE@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_cobalt_write_bar1
Lloh60:
	adrp	x8, _COBALT_SYS_STAT_MASK@GOTPAGE
Lloh61:
	ldr	x8, [x8, _COBALT_SYS_STAT_MASK@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	b	LBB0_7
LBB0_6:
Lloh63:
	adrp	x8, _COBALT_SYS_STAT_MASK@GOTPAGE
Lloh64:
	ldr	x8, [x8, _COBALT_SYS_STAT_MASK@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cobalt_write_bar1
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.cfi_endproc
                                        ; -- End function
	.comm	_COBALT_SYSSTAT_VI0_INT1_MSK,4,2 ; @COBALT_SYSSTAT_VI0_INT1_MSK
	.comm	_COBALT_SYSSTAT_VI1_INT1_MSK,4,2 ; @COBALT_SYSSTAT_VI1_INT1_MSK
	.comm	_COBALT_SYSSTAT_VI2_INT1_MSK,4,2 ; @COBALT_SYSSTAT_VI2_INT1_MSK
	.comm	_COBALT_SYSSTAT_VI3_INT1_MSK,4,2 ; @COBALT_SYSSTAT_VI3_INT1_MSK
	.comm	_COBALT_SYSSTAT_VI0_INT2_MSK,4,2 ; @COBALT_SYSSTAT_VI0_INT2_MSK
	.comm	_COBALT_SYSSTAT_VI1_INT2_MSK,4,2 ; @COBALT_SYSSTAT_VI1_INT2_MSK
	.comm	_COBALT_SYSSTAT_VI2_INT2_MSK,4,2 ; @COBALT_SYSSTAT_VI2_INT2_MSK
	.comm	_COBALT_SYSSTAT_VI3_INT2_MSK,4,2 ; @COBALT_SYSSTAT_VI3_INT2_MSK
	.comm	_COBALT_SYSSTAT_VI0_LOST_DATA_MSK,4,2 ; @COBALT_SYSSTAT_VI0_LOST_DATA_MSK
	.comm	_COBALT_SYSSTAT_VI1_LOST_DATA_MSK,4,2 ; @COBALT_SYSSTAT_VI1_LOST_DATA_MSK
	.comm	_COBALT_SYSSTAT_VI2_LOST_DATA_MSK,4,2 ; @COBALT_SYSSTAT_VI2_LOST_DATA_MSK
	.comm	_COBALT_SYSSTAT_VI3_LOST_DATA_MSK,4,2 ; @COBALT_SYSSTAT_VI3_LOST_DATA_MSK
	.comm	_COBALT_SYSSTAT_AUD_IN_LOST_DATA_MSK,4,2 ; @COBALT_SYSSTAT_AUD_IN_LOST_DATA_MSK
	.comm	_COBALT_SYSSTAT_VIHSMA_INT1_MSK,4,2 ; @COBALT_SYSSTAT_VIHSMA_INT1_MSK
	.comm	_COBALT_SYSSTAT_VIHSMA_INT2_MSK,4,2 ; @COBALT_SYSSTAT_VIHSMA_INT2_MSK
	.comm	_COBALT_SYSSTAT_VIHSMA_LOST_DATA_MSK,4,2 ; @COBALT_SYSSTAT_VIHSMA_LOST_DATA_MSK
	.comm	_COBALT_SYSSTAT_VOHSMA_INT1_MSK,4,2 ; @COBALT_SYSSTAT_VOHSMA_INT1_MSK
	.comm	_COBALT_SYSSTAT_VOHSMA_LOST_DATA_MSK,4,2 ; @COBALT_SYSSTAT_VOHSMA_LOST_DATA_MSK
	.comm	_COBALT_SYSSTAT_AUD_OUT_LOST_DATA_MSK,4,2 ; @COBALT_SYSSTAT_AUD_OUT_LOST_DATA_MSK
	.comm	_COBALT_SYS_STAT_EDGE,4,2       ; @COBALT_SYS_STAT_EDGE
	.comm	_COBALT_SYS_STAT_MASK,4,2       ; @COBALT_SYS_STAT_MASK
	.no_dead_strip	_cobalt_set_interrupt
.subsections_via_symbols
