	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function denali_pio_write
_denali_pio_write:                      ## @denali_pio_write
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_DENALI_MAP01@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	callq	_DENALI_BANK
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_denali_reset_irq
	cmpq	$4, %r15
	jb	LBB0_3
## %bb.1:
	orl	%ebx, %r14d
	shrq	$2, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,4), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	*(%r13)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_2
LBB0_3:
	movq	_INTR__PROGRAM_COMP@GOTPCREL(%rip), %rbx
	movq	_INTR__PROGRAM_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_denali_wait_for_irq
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	testl	%eax, (%rbx)
	cmovnel	%esi, %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DENALI_MAP01,4,2               ## @DENALI_MAP01
	.comm	_INTR__PROGRAM_COMP,4,2         ## @INTR__PROGRAM_COMP
	.comm	_INTR__PROGRAM_FAIL,4,2         ## @INTR__PROGRAM_FAIL
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_denali_pio_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function denali_pio_write
_denali_pio_write:                      ; @denali_pio_write
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _DENALI_MAP01@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DENALI_MAP01@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	bl	_DENALI_BANK
	mov	x23, x0
	mov	x0, x19
	bl	_denali_reset_irq
	cmp	x22, #4
	b.lo	LBB0_3
; %bb.1:
	orr	w8, w24, w21
	orr	w21, w8, w23
	lsr	x22, x22, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w2, [x20], #4
	mov	x0, x19
	mov	x1, x21
	blr	x8
	subs	x22, x22, #1
	b.ne	LBB0_2
LBB0_3:
Lloh3:
	adrp	x20, _INTR__PROGRAM_COMP@GOTPAGE
Lloh4:
	ldr	x20, [x20, _INTR__PROGRAM_COMP@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _INTR__PROGRAM_FAIL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INTR__PROGRAM_FAIL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_denali_wait_for_irq
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _EIO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w8, w0
	csneg	w0, wzr, w9, ne
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DENALI_MAP01,4,2               ; @DENALI_MAP01
	.comm	_INTR__PROGRAM_COMP,4,2         ; @INTR__PROGRAM_COMP
	.comm	_INTR__PROGRAM_FAIL,4,2         ; @INTR__PROGRAM_FAIL
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_denali_pio_write
.subsections_via_symbols
