	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pio_tasklet
_pio_tasklet:                           ## @pio_tasklet
	.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, %rbx
	movl	$1, %esi
	callq	_s3cmci_disable_irq
	movq	(%rbx), %rax
	movq	_XFER_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_do_pio_write
	movq	(%rbx), %rax
LBB0_2:
	movq	_XFER_READ@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_do_pio_read
LBB0_4:
	movq	8(%rbx), %rax
	movq	_COMPLETION_FINALIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.5:
	movq	%rbx, %rdi
	callq	_clear_imask
	movq	(%rbx), %rax
	movq	_XFER_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.6:
	movq	_dbg_err@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpq	(%r14), %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	movl	24(%rbx), %r9d
	movl	28(%rbx), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_dbg
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	movl	%edx, (%rax)
LBB0_8:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_s3cmci_enable_irq
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_finalize_request               ## TAILCALL
LBB0_9:
	movq	%rbx, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_s3cmci_enable_irq              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XFER_WRITE,8,3                 ## @XFER_WRITE
	.comm	_XFER_READ,8,3                  ## @XFER_READ
	.comm	_COMPLETION_FINALIZE,8,3        ## @COMPLETION_FINALIZE
	.comm	_XFER_NONE,8,3                  ## @XFER_NONE
	.comm	_dbg_err,4,2                    ## @dbg_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unfinished %s - pio_count:[%u] pio_bytes:[%u]\n"

L_.str.1:                               ## @.str.1
	.asciz	"read"

L_.str.2:                               ## @.str.2
	.asciz	"write"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pio_tasklet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pio_tasklet
_pio_tasklet:                           ; @pio_tasklet
	.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
	mov	w1, #1
	bl	_s3cmci_disable_irq
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _XFER_WRITE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XFER_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_do_pio_write
	ldr	x8, [x19]
LBB0_2:
Lloh3:
	adrp	x20, _XFER_READ@GOTPAGE
Lloh4:
	ldr	x20, [x20, _XFER_READ@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_do_pio_read
LBB0_4:
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _COMPLETION_FINALIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _COMPLETION_FINALIZE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x19
	bl	_clear_imask
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _XFER_NONE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _XFER_NONE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.6:
Lloh11:
	adrp	x9, _dbg_err@GOTPAGE
Lloh12:
	ldr	x9, [x9, _dbg_err@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
	ldr	x9, [x20]
Lloh14:
	adrp	x10, l_.str.2@PAGE
Lloh15:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh16:
	adrp	x11, l_.str.1@PAGE
Lloh17:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x8, x9
	csel	x3, x11, x10, eq
	ldp	w5, w4, [x19, #24]
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dbg
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
Lloh20:
	adrp	x9, _EINVAL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	neg	w9, w9
	str	w9, [x8]
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	bl	_s3cmci_enable_irq
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_finalize_request
LBB0_9:
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_s3cmci_enable_irq
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_XFER_WRITE,8,3                 ; @XFER_WRITE
	.comm	_XFER_READ,8,3                  ; @XFER_READ
	.comm	_COMPLETION_FINALIZE,8,3        ; @COMPLETION_FINALIZE
	.comm	_XFER_NONE,8,3                  ; @XFER_NONE
	.comm	_dbg_err,4,2                    ; @dbg_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unfinished %s - pio_count:[%u] pio_bytes:[%u]\n"

l_.str.1:                               ; @.str.1
	.asciz	"read"

l_.str.2:                               ; @.str.2
	.asciz	"write"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_pio_tasklet
.subsections_via_symbols
