	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clear_chan_irq
_clear_chan_irq:                        ## @clear_chan_irq
	.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, %r15
	movq	_DINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	(%r15), %edi
	callq	_readl
	movl	%eax, %r14d
	movl	4(%r15), %ebx
	movq	_DCSR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%ebx, %edi
	callq	_BIT
	testl	%r14d, %eax
	je	LBB0_1
## %bb.2:
	leal	(%r12,%rbx,4), %ebx
	movl	(%r15), %edi
	addl	%ebx, %edi
	callq	_readl
	movl	%eax, %r12d
	addl	(%r15), %ebx
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_writel
	movq	_DCSR_BUSERR@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	testl	%r12d, (%rax)
	je	LBB0_5
## %bb.3:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_5
LBB0_1:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DINT,4,2                       ## @DINT
	.comm	_DCSR,4,2                       ## @DCSR
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_DCSR_BUSERR,4,2                ## @DCSR_BUSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DCSR_BUSERR\n"

	.no_dead_strip	_clear_chan_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clear_chan_irq
_clear_chan_irq:                        ; @clear_chan_irq
	.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
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _DINT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DINT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w0, w9, w8
	bl	_readl
	mov	x21, x0
	ldr	w20, [x19, #4]
Lloh3:
	adrp	x8, _DCSR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DCSR@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_5
; %bb.1:
	add	w21, w22, w20, lsl #2
	ldr	w8, [x19]
	add	w0, w8, w21
	bl	_readl
	mov	x20, x0
	ldr	w8, [x19]
	add	w1, w8, w21
	bl	_writel
Lloh6:
	adrp	x8, _DCSR_BUSERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DCSR_BUSERR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DINT,4,2                       ; @DINT
	.comm	_DCSR,4,2                       ; @DCSR
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_DCSR_BUSERR,4,2                ; @DCSR_BUSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DCSR_BUSERR\n"

	.no_dead_strip	_clear_chan_irq
.subsections_via_symbols
