	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blk_rq_map_kern                ## -- Begin function blk_rq_map_kern
	.p2align	4, 0x90
_blk_rq_map_kern:                       ## @blk_rq_map_kern
	.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
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_rq_data_dir
	movq	_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%r13b
	movq	%r15, %rdi
	callq	_queue_max_hw_sectors
	shll	$9, %eax
	cmpl	%ebx, %eax
	jb	LBB0_1
## %bb.2:
	movb	%r13b, -41(%rbp)                ## 1-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	je	LBB0_1
## %bb.3:
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_blk_rq_aligned
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_object_is_on_stack
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	xorl	%r8d, %r8d
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r8b
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%ebx, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_bio_copy_kern
	movq	%rax, %r15
	movb	$1, %bl
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%ebx, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_bio_map_kern
	movq	%rax, %r15
	xorl	%ebx, %ebx
LBB0_8:
	movq	%r12, %r14
	movq	%r15, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.17:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_9:
	movq	%r14, %rdi
	callq	_rq_data_dir
	movq	_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movq	_BIO_RW@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	orl	%eax, (%r15)
LBB0_11:
	testb	%bl, %bl
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_13
## %bb.12:
	movq	_REQ_COPY_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%r14)
LBB0_13:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_blk_rq_append_bio
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	callq	_bio_put
	jmp	LBB0_16
LBB0_15:
	leaq	8(%r14), %rsi
	movq	%r12, %rdi
	callq	_blk_queue_bounce
	movq	$0, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_READ,8,3                       ## @READ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WRITE,8,3                      ## @WRITE
	.comm	_BIO_RW,4,2                     ## @BIO_RW
	.comm	_REQ_COPY_USER,4,2              ## @REQ_COPY_USER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blk_rq_map_kern                ; -- Begin function blk_rq_map_kern
	.p2align	2
_blk_rq_map_kern:                       ; @blk_rq_map_kern
	.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, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_rq_data_dir
Lloh0:
	adrp	x8, _READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _READ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w24, eq
	mov	x0, x20
	bl	_queue_max_hw_sectors
	cmp	w22, w0, lsl #9
	b.hi	LBB0_6
; %bb.1:
	cbz	x23, LBB0_6
; %bb.2:
	cbz	w22, LBB0_6
; %bb.3:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_blk_rq_aligned
	cbz	w0, LBB0_5
; %bb.4:
	mov	x0, x23
	bl	_object_is_on_stack
	cbz	x0, LBB0_8
LBB0_5:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x24
	bl	_bio_copy_kern
	mov	x21, x0
	mov	w22, #1
	b	LBB0_9
LBB0_6:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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
LBB0_8:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_bio_map_kern
	mov	x21, x0
	mov	w22, #0
LBB0_9:
	mov	x0, x21
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x21
	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
	b	_PTR_ERR
LBB0_11:
	mov	x0, x19
	bl	_rq_data_dir
Lloh6:
	adrp	x8, _WRITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WRITE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.12:
Lloh9:
	adrp	x8, _BIO_RW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BIO_RW@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_13:
	cbz	w22, LBB0_15
; %bb.14:
Lloh12:
	adrp	x8, _REQ_COPY_USER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REQ_COPY_USER@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
	str	w8, [x19, #12]
LBB0_15:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_blk_rq_append_bio
	mov	x22, x0
	bl	_unlikely
	cbz	x0, LBB0_17
; %bb.16:
	mov	x0, x21
	bl	_bio_put
	b	LBB0_7
LBB0_17:
	add	x1, x19, #8
	mov	x0, x20
	bl	_blk_queue_bounce
	mov	w22, #0
	str	xzr, [x19]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_READ,8,3                       ; @READ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WRITE,8,3                      ; @WRITE
	.comm	_BIO_RW,4,2                     ; @BIO_RW
	.comm	_REQ_COPY_USER,4,2              ; @REQ_COPY_USER
.subsections_via_symbols
