	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function blk_complete_sghdr_rq
_blk_complete_sghdr_rq:                 ## @blk_complete_sghdr_rq
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	(%rdi), %edi
	movzbl	%dil, %eax
	movl	%eax, (%rsi)
	callq	_status_byte
	movl	%eax, 40(%rbx)
	movl	(%r15), %edi
	callq	_msg_byte
	movl	%eax, 44(%rbx)
	movl	(%r15), %edi
	callq	_host_byte
	movl	%eax, 36(%rbx)
	movl	(%r15), %edi
	callq	_driver_byte
	movl	%eax, 32(%rbx)
	movl	$0, 28(%rbx)
	cmpl	$0, 40(%rbx)
	jne	LBB0_2
## %bb.1:
	orl	36(%rbx), %eax
	je	LBB0_3
LBB0_2:
	movq	_SG_INFO_CHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
LBB0_3:
	movl	16(%r15), %eax
	movl	%eax, 24(%rbx)
	movl	$0, 4(%rbx)
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.4:
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.5:
	movl	16(%rbx), %edi
	callq	_min
	movl	%eax, %r12d
	movq	8(%rbx), %rdi
	movl	4(%r15), %esi
	movl	%eax, %edx
	callq	_copy_to_user
	testl	%eax, %eax
	je	LBB0_6
## %bb.9:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_blk_rq_unmap_user
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.10:
	negl	%ebx
	jmp	LBB0_11
LBB0_6:
	movl	%r12d, 4(%rbx)
LBB0_7:
	movq	%r14, %rdi
	callq	_blk_rq_unmap_user
LBB0_8:
	movl	%eax, %ebx
LBB0_11:
	movq	%r15, %rdi
	callq	_blk_put_request
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SG_INFO_CHECK,4,2              ## @SG_INFO_CHECK
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_blk_complete_sghdr_rq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function blk_complete_sghdr_rq
_blk_complete_sghdr_rq:                 ; @blk_complete_sghdr_rq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0]
	and	w8, w0, #0xff
	str	w8, [x1]
	bl	_status_byte
	str	w0, [x21, #40]
	ldr	w0, [x19]
	bl	_msg_byte
	str	w0, [x21, #44]
	ldr	w0, [x19]
	bl	_host_byte
	str	w0, [x21, #36]
	ldr	w0, [x19]
	bl	_driver_byte
	stp	wzr, w0, [x21, #28]
	ldr	w8, [x21, #40]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x21, #36]
	orr	w8, w8, w0
	cbz	w8, LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _SG_INFO_CHECK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SG_INFO_CHECK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #28]
LBB0_3:
	ldr	w8, [x19, #16]
	str	w8, [x21, #24]
	str	wzr, [x21, #4]
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_9
; %bb.4:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_9
; %bb.5:
	ldr	w0, [x21, #16]
	bl	_min
	mov	x22, x0
	ldr	x0, [x21, #8]
	ldr	w1, [x19, #4]
	mov	x2, x22
	bl	_copy_to_user
	cbz	w0, LBB0_8
; %bb.6:
Lloh3:
	adrp	x8, _EFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_blk_rq_unmap_user
	cbz	w21, LBB0_10
; %bb.7:
	neg	w20, w21
	b	LBB0_11
LBB0_8:
	str	w22, [x21, #4]
LBB0_9:
	mov	x0, x20
	bl	_blk_rq_unmap_user
LBB0_10:
	mov	x20, x0
LBB0_11:
	mov	x0, x19
	bl	_blk_put_request
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SG_INFO_CHECK,4,2              ; @SG_INFO_CHECK
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_blk_complete_sghdr_rq
.subsections_via_symbols
