	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parport_ip32_dma_start
_parport_ip32_dma_start:                ## @parport_ip32_dma_start
	.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
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movl	%esi, %r13d
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	movl	%r13d, %edx
	callq	_pr_trace
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r13d, (%rax)
	setne	%dil
	callq	_BUG_ON
	movq	_MACEPAR_CTLSTAT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mace@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_writeq
	movq	_parport_ip32_dma@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jne	LBB0_2
## %bb.1:
	movl	$1, %edi
	callq	_WARN_ON
	movq	_MACEISA_PAR_CTXA_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_enable_irq
	movq	_MACEISA_PAR_CTXB_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_enable_irq
	movl	$1, (%r15)
LBB0_2:
	movl	%r13d, 4(%r15)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	%r13d, %ecx
	callq	_dma_map_single
	movl	%eax, 8(%r15)
	movq	%r14, 16(%r15)
	movl	%eax, 24(%r15)
	movq	%r14, 32(%r15)
	movq	$0, 40(%r15)
	movl	$0, %ebx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_MACEPAR_CTLSTAT_DIRECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_4:
	movq	_mace@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movl	%ebx, %edi
	callq	_writeq
	movq	_MACEPAR_CONTEXT_DATA_BOUND@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leal	-1(%rdi), %eax
	andl	24(%r15), %eax
	subl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_parport_ip32_dma_setup_context
	movl	(%r14), %edi
	callq	_parport_ip32_dma_setup_context
	movq	_MACEPAR_CTLSTAT_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	(%r12), %rsi
	movl	%ebx, %edi
	callq	_writeq
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%d, %lu)"

	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_MACEPAR_CTLSTAT_RESET,4,2      ## @MACEPAR_CTLSTAT_RESET
	.comm	_mace,8,3                       ## @mace
	.comm	_parport_ip32_dma,48,3          ## @parport_ip32_dma
	.comm	_MACEISA_PAR_CTXA_IRQ,4,2       ## @MACEISA_PAR_CTXA_IRQ
	.comm	_MACEISA_PAR_CTXB_IRQ,4,2       ## @MACEISA_PAR_CTXB_IRQ
	.comm	_MACEPAR_CTLSTAT_DIRECTION,4,2  ## @MACEPAR_CTLSTAT_DIRECTION
	.comm	_MACEPAR_CONTEXT_DATA_BOUND,4,2 ## @MACEPAR_CONTEXT_DATA_BOUND
	.comm	_MACEPAR_CTLSTAT_ENABLE,4,2     ## @MACEPAR_CTLSTAT_ENABLE
	.no_dead_strip	_parport_ip32_dma_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parport_ip32_dma_start
_parport_ip32_dma_start:                ; @parport_ip32_dma_start
	.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	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, #0
	mov	x2, x19
	bl	_pr_trace
Lloh2:
	adrp	x24, _DMA_TO_DEVICE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, w19
	cset	w0, ne
	bl	_BUG_ON
Lloh4:
	adrp	x8, _MACEPAR_CTLSTAT_RESET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MACEPAR_CTLSTAT_RESET@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x23, _mace@GOTPAGE
Lloh8:
	ldr	x23, [x23, _mace@GOTPAGEOFF]
	ldr	x1, [x23]
	bl	_writeq
Lloh9:
	adrp	x25, _parport_ip32_dma@GOTPAGE
Lloh10:
	ldr	x25, [x25, _parport_ip32_dma@GOTPAGEOFF]
	ldr	w8, [x25]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	w26, #1
	mov	w0, #1
	bl	_WARN_ON
Lloh11:
	adrp	x8, _MACEISA_PAR_CTXA_IRQ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MACEISA_PAR_CTXA_IRQ@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_enable_irq
Lloh14:
	adrp	x8, _MACEISA_PAR_CTXB_IRQ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MACEISA_PAR_CTXB_IRQ@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_enable_irq
	str	w26, [x25]
LBB0_2:
	str	w19, [x25, #4]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_dma_map_single
	str	w0, [x25, #8]
	str	x20, [x25, #16]
	str	w0, [x25, #24]
	stp	x20, xzr, [x25, #32]
	ldr	w8, [x24]
Lloh17:
	adrp	x9, _MACEPAR_CTLSTAT_DIRECTION@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MACEPAR_CTLSTAT_DIRECTION@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w8, w19
	csel	w19, wzr, w9, eq
	ldr	x1, [x23]
	mov	x0, x19
	bl	_writeq
Lloh20:
	adrp	x20, _MACEPAR_CONTEXT_DATA_BOUND@GOTPAGE
Lloh21:
	ldr	x20, [x20, _MACEPAR_CONTEXT_DATA_BOUND@GOTPAGEOFF]
	ldr	w8, [x20]
	ldr	w9, [x25, #24]
	sub	w10, w8, #1
	and	w9, w9, w10
	sub	w0, w8, w9
	bl	_parport_ip32_dma_setup_context
	ldr	w0, [x20]
	bl	_parport_ip32_dma_setup_context
Lloh22:
	adrp	x8, _MACEPAR_CTLSTAT_ENABLE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MACEPAR_CTLSTAT_ENABLE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	orr	w0, w8, w19
	ldr	x1, [x23]
	bl	_writeq
	mov	w0, #0
	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 AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%d, %lu)"

	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_MACEPAR_CTLSTAT_RESET,4,2      ; @MACEPAR_CTLSTAT_RESET
	.comm	_mace,8,3                       ; @mace
	.comm	_parport_ip32_dma,48,3          ; @parport_ip32_dma
	.comm	_MACEISA_PAR_CTXA_IRQ,4,2       ; @MACEISA_PAR_CTXA_IRQ
	.comm	_MACEISA_PAR_CTXB_IRQ,4,2       ; @MACEISA_PAR_CTXB_IRQ
	.comm	_MACEPAR_CTLSTAT_DIRECTION,4,2  ; @MACEPAR_CTLSTAT_DIRECTION
	.comm	_MACEPAR_CONTEXT_DATA_BOUND,4,2 ; @MACEPAR_CONTEXT_DATA_BOUND
	.comm	_MACEPAR_CTLSTAT_ENABLE,4,2     ; @MACEPAR_CTLSTAT_ENABLE
	.no_dead_strip	_parport_ip32_dma_start
.subsections_via_symbols
