	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parport_ip32_fifo_write_block_dma
_parport_ip32_fifo_write_block_dma:     ## @parport_ip32_fifo_write_block_dma
	.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	%rdx, %rcx
	movq	%rsi, %rdx
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	16(%rax), %rbx
	movq	%rax, %r12
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_PARPORT_IP32_IRQ_HERE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	callq	_parport_ip32_dma_start
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_reinit_completion
	movq	_ECR_DMAEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ECR_SERVINTR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	orl	%edx, %esi
	movq	%r13, %rdi
	callq	_parport_ip32_frob_econtrol
	movq	(%r12), %rax
	movq	(%rax), %rbx
	movq	_FIFO_NFAULT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_min
	movq	%rax, %r12
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rcx), %rbx
	addq	(%rax), %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_parport_ip32_fifo_wait_break
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_wait_for_completion_interruptible_timeout
	movq	%r13, %rdi
	callq	_parport_ip32_read_econtrol
	testl	%eax, (%r14)
	je	LBB0_1
LBB0_3:
	movq	%r13, %rdi
	callq	_parport_ip32_dma_stop
	xorl	%eax, %eax
	callq	_parport_ip32_dma_get_residue
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	subq	%rax, %rcx
	movq	_PARPORT_IP32_IRQ_FWD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx)
	movq	%rcx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PARPORT_IP32_IRQ_HERE,4,2      ## @PARPORT_IP32_IRQ_HERE
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_ECR_DMAEN,4,2                  ## @ECR_DMAEN
	.comm	_ECR_SERVINTR,4,2               ## @ECR_SERVINTR
	.comm	_FIFO_NFAULT_TIMEOUT,4,2        ## @FIFO_NFAULT_TIMEOUT
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_PARPORT_IP32_IRQ_FWD,4,2       ## @PARPORT_IP32_IRQ_FWD
	.no_dead_strip	_parport_ip32_fifo_write_block_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parport_ip32_fifo_write_block_dma
_parport_ip32_fifo_write_block_dma:     ; @parport_ip32_fifo_write_block_dma
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x2, x1
	mov	x20, x0
	ldr	x23, [x0, #8]
	ldr	x24, [x23, #16]
Lloh0:
	adrp	x8, _PARPORT_IP32_IRQ_HERE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PARPORT_IP32_IRQ_HERE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	x21, x24
	str	w8, [x21], #4
Lloh3:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x3, x19
	bl	_parport_ip32_dma_start
	mov	x0, x21
	bl	_reinit_completion
Lloh6:
	adrp	x8, _ECR_DMAEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ECR_DMAEN@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x25, _ECR_SERVINTR@GOTPAGE
Lloh10:
	ldr	x25, [x25, _ECR_SERVINTR@GOTPAGEOFF]
	ldr	w8, [x25]
	orr	w1, w8, w2
	mov	x0, x20
	bl	_parport_ip32_frob_econtrol
	ldr	x8, [x23]
	ldr	x22, [x8]
Lloh11:
	adrp	x8, _FIFO_NFAULT_TIMEOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FIFO_NFAULT_TIMEOUT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x22
	bl	_min
	mov	x22, x0
Lloh14:
	adrp	x8, _jiffies@GOTPAGE
Lloh15:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x9, [x23]
	ldr	x9, [x9]
	add	x23, x9, x8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_parport_ip32_fifo_wait_break
	cbnz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_wait_for_completion_interruptible_timeout
	mov	x0, x20
	bl	_parport_ip32_read_econtrol
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_1
LBB0_3:
	mov	x0, x20
	bl	_parport_ip32_dma_stop
	bl	_parport_ip32_dma_get_residue
	sub	x0, x19, x0
Lloh17:
	adrp	x8, _PARPORT_IP32_IRQ_FWD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PARPORT_IP32_IRQ_FWD@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x24]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_PARPORT_IP32_IRQ_HERE,4,2      ; @PARPORT_IP32_IRQ_HERE
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_ECR_DMAEN,4,2                  ; @ECR_DMAEN
	.comm	_ECR_SERVINTR,4,2               ; @ECR_SERVINTR
	.comm	_FIFO_NFAULT_TIMEOUT,4,2        ; @FIFO_NFAULT_TIMEOUT
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_PARPORT_IP32_IRQ_FWD,4,2       ; @PARPORT_IP32_IRQ_FWD
	.no_dead_strip	_parport_ip32_fifo_write_block_dma
.subsections_via_symbols
