	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carm_rq_fn
_carm_rq_fn:                            ## @carm_rq_fn
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rbx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_VPRINTK
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_blk_peek_request
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_carm_get_request
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r13
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, 40(%rax)
	movq	%r14, %rdi
	callq	_blk_start_request
	movq	%r14, %rdi
	callq	_rq_data_dir
	movq	%rax, %rcx
	movq	_WRITE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	cmpq	%r12, %rcx
	movl	$1, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmovel	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	16(%r13), %r15
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_blk_rq_map_sg
	testl	%eax, %eax
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r12, -64(%rbp)                 ## 8-byte Folded Reload
	cmovel	-84(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	4(%r14), %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_pci_map_sg
	testl	%eax, %eax
	jle	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r15d
	movl	%eax, (%r13)
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, 32(%r13)
	addl	%eax, (%r14)
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_VPRINTK
	movl	8(%r13), %esi
	movq	%r14, %rdi
	callq	_carm_ref_msg
	movq	%rax, %r14
	movq	_CARM_MSG_WRITE@GOTPCREL(%rip), %rax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_CARM_MSG_READ@GOTPCREL(%rip), %rax
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rax), %rax
	movq	%rax, 56(%r14)
	movq	%rax, 24(%r13)
	movl	(%rbx), %eax
	movl	%eax, 52(%r14)
	movl	%r15d, (%r14)
	movq	_SGT_32BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movl	8(%r13), %edi
	callq	_TAG_ENCODE
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 40(%r14)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_blk_rq_pos
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 32(%r14)
	movq	%rbx, %rdi
	callq	_blk_rq_pos
	sarl	$31, %eax
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%r14)
	movq	%rbx, %rdi
	callq	_blk_rq_sectors
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r14)
	movl	%r15d, %ebx
	shll	$4, %r15d
	movl	%r15d, -64(%rbp)                ## 4-byte Spill
	shlq	$2, %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r14), %r15
	movq	16(%r13), %rdi
	addq	%r12, %rdi
	callq	_sg_dma_address
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r15,%r12,4)
	movq	16(%r13), %rdi
	addq	%r12, %rdi
	callq	_sg_dma_len
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r15,%r12,4)
	addq	$4, %r12
	cmpq	%r12, %rbx
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	addl	$56, %edi
	callq	_carm_lookup_bucket
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_BUG_ON
	movl	%ebx, 4(%r13)
	movl	8(%r13), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_VPRINTK
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_carm_send_msg
	testl	%eax, %eax
	je	LBB0_1
## %bb.15:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_carm_put_request
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_blk_requeue_request
	movq	%rbx, %rdi
	movq	%r14, %rsi
	jmp	LBB0_4
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_4:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_carm_push_q                    ## TAILCALL
LBB0_6:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	subl	(%rax), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_8:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	subl	(%rax), %edx
	movq	%r14, %rdi
LBB0_9:
	movq	%r13, %rsi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_carm_end_rq                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get req\n"

	.comm	_WRITE,8,3                      ## @WRITE
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"build msg\n"

	.comm	_CARM_MSG_WRITE,8,3             ## @CARM_MSG_WRITE
	.comm	_CARM_MSG_READ,8,3              ## @CARM_MSG_READ
	.comm	_SGT_32BIT,4,2                  ## @SGT_32BIT
L_.str.2:                               ## @.str.2
	.asciz	"send msg, tag == %u\n"

	.no_dead_strip	_carm_rq_fn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carm_rq_fn
_carm_rq_fn:                            ; @carm_rq_fn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	mov	w28, #0
	ldr	x8, [x0]
	stp	x8, x0, [sp, #16]               ; 16-byte Folded Spill
	ldr	x19, [x8, #8]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_VPRINTK
	mov	x0, x20
	bl	_blk_peek_request
	cbz	x0, LBB0_11
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x24, x0
	mov	x0, x19
	bl	_carm_get_request
	cbz	x0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x25, x0
	str	x24, [x0, #40]
	mov	x0, x24
	bl	_blk_start_request
	mov	x0, x24
	bl	_rq_data_dir
	mov	x26, x0
Lloh2:
	adrp	x8, _WRITE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WRITE@GOTPAGEOFF]
Lloh4:
	ldr	x21, [x8]
	cmp	x0, x21
	csinc	w28, w28, wzr, ne
Lloh5:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
Lloh8:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
	ldr	x27, [x25, #16]
	mov	x0, x20
	mov	x1, x24
	mov	x2, x27
	bl	_blk_rq_map_sg
	cmp	w0, #0
	b.le	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x2, x0
	cmp	x26, x21
	csel	w3, w22, w23, eq
	ldr	w0, [x19, #4]
	mov	x1, x27
	bl	_pci_map_sg
	cmp	w0, #0
	b.le	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x27, x0
	str	w0, [x25]
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	str	x20, [x25, #32]
	ldr	w8, [x19]
	add	w8, w8, w0
	str	w8, [x19]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_VPRINTK
	ldr	w1, [x25, #8]
	mov	x0, x19
	bl	_carm_ref_msg
	mov	x26, x0
	cmp	w28, #0
Lloh13:
	adrp	x8, _CARM_MSG_READ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CARM_MSG_READ@GOTPAGEOFF]
Lloh15:
	adrp	x9, _CARM_MSG_WRITE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CARM_MSG_WRITE@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	x8, [x8]
	str	x8, [x0, #56]
	str	x8, [x25, #24]
	ldr	w8, [x20]
	str	w27, [x0]
Lloh17:
	adrp	x9, _SGT_32BIT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SGT_32BIT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #48]
	ldr	w0, [x25, #8]
	bl	_TAG_ENCODE
	bl	_cpu_to_le32
	str	x0, [x26, #40]
	mov	x0, x24
	bl	_blk_rq_pos
	bl	_cpu_to_le32
	str	x0, [x26, #32]
	mov	x0, x24
	bl	_blk_rq_pos
	asr	w0, w0, #31
	bl	_cpu_to_le16
	str	x0, [x26, #24]
	mov	x0, x24
	bl	_blk_rq_sectors
	bl	_cpu_to_le16
	mov	x23, #0
	str	x0, [x26, #16]
	lsl	w21, w27, #4
	mov	w8, w27
	lsl	x27, x8, #2
	mov	w22, #8
LBB0_6:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x20, [x26, #8]
	ldr	x8, [x25, #16]
	add	x0, x8, x23
	bl	_sg_dma_address
	bl	_cpu_to_le32
	add	x20, x20, x22
	str	x0, [x20]
	ldr	x8, [x25, #16]
	add	x0, x8, x23
	bl	_sg_dma_len
	bl	_cpu_to_le32
	stur	x0, [x20, #-8]
	add	x23, x23, #4
	add	x22, x22, #16
	cmp	x27, x23
	b.ne	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w0, w21, #56
	bl	_carm_lookup_bucket
	mov	x26, x0
	lsr	w0, w0, #31
	bl	_BUG_ON
	str	w26, [x25, #4]
	ldr	w8, [x25, #8]
	str	x8, [sp]
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_VPRINTK
	mov	x0, x19
	mov	x1, x25
	bl	_carm_send_msg
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
	cbz	w0, LBB0_1
; %bb.8:
	mov	x0, x19
	mov	x1, x25
	bl	_carm_put_request
	mov	x0, x20
	mov	x1, x24
	bl	_blk_requeue_request
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_carm_push_q
LBB0_10:
Lloh22:
	adrp	x8, _EIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w2, w8
	mov	x0, x19
	mov	x1, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_carm_end_rq
LBB0_11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get req\n"

	.comm	_WRITE,8,3                      ; @WRITE
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"build msg\n"

	.comm	_CARM_MSG_WRITE,8,3             ; @CARM_MSG_WRITE
	.comm	_CARM_MSG_READ,8,3              ; @CARM_MSG_READ
	.comm	_SGT_32BIT,4,2                  ; @SGT_32BIT
l_.str.2:                               ; @.str.2
	.asciz	"send msg, tag == %u\n"

	.no_dead_strip	_carm_rq_fn
.subsections_via_symbols
