	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function blk_fill_sgv4_hdr_rq
_blk_fill_sgv4_hdr_rq:                  ## @blk_fill_sgv4_hdr_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
	movl	%r8d, %r12d
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdx), %rdx
	movq	_BLK_MAX_CDB@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jle	LBB0_1
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdx, %rdi
	callq	_kzalloc
	movl	%eax, 20(%r15)
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %edi
	movq	(%rbx), %rdx
	jmp	LBB0_2
LBB0_1:
	movl	20(%r15), %edi
LBB0_2:
	movq	24(%rbx), %rsi
	callq	_copy_from_user
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_8:
	movq	8(%rbx), %rax
	movq	_BSG_SUB_PROTOCOL_SCSI_CMD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.9:
	movl	20(%r15), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_blk_verify_command
	testq	%rax, %rax
	je	LBB0_12
LBB0_10:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_CAP_SYS_RAWIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_10
LBB0_12:
	movq	(%rbx), %rax
	movq	%rax, (%r15)
	movq	_REQ_TYPE_BLOCK_PC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movl	16(%rbx), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %rcx
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:
	movq	(%r14), %rcx
	movq	%rcx, 8(%r15)
	testq	%rcx, %rcx
	jne	LBB0_15
## %bb.14:
	movq	_BLK_DEFAULT_SG_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 8(%r15)
LBB0_15:
	movq	_BLK_MIN_SG_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%eax, %eax
	cmpq	%rdx, %rcx
	jge	LBB0_17
## %bb.16:
	movq	%rdx, 8(%r15)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_BLK_MAX_CDB,8,3                ## @BLK_MAX_CDB
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_BSG_SUB_PROTOCOL_SCSI_CMD,8,3  ## @BSG_SUB_PROTOCOL_SCSI_CMD
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_CAP_SYS_RAWIO,4,2              ## @CAP_SYS_RAWIO
	.comm	_REQ_TYPE_BLOCK_PC,4,2          ## @REQ_TYPE_BLOCK_PC
	.comm	_BLK_DEFAULT_SG_TIMEOUT,8,3     ## @BLK_DEFAULT_SG_TIMEOUT
	.comm	_BLK_MIN_SG_TIMEOUT,8,3         ## @BLK_MIN_SG_TIMEOUT
	.no_dead_strip	_blk_fill_sgv4_hdr_rq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function blk_fill_sgv4_hdr_rq
_blk_fill_sgv4_hdr_rq:                  ; @blk_fill_sgv4_hdr_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	x22, x4
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x2, [x2]
Lloh0:
	adrp	x8, _BLK_MAX_CDB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLK_MAX_CDB@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.le	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x2
	bl	_kzalloc
	str	w0, [x19, #20]
	cbz	w0, LBB0_9
; %bb.2:
	ldr	x2, [x21]
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19, #20]
LBB0_4:
	ldr	x1, [x21, #24]
	bl	_copy_from_user
	cbz	x0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _EFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	ldr	x8, [x21, #8]
Lloh8:
	adrp	x9, _BSG_SUB_PROTOCOL_SCSI_CMD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BSG_SUB_PROTOCOL_SCSI_CMD@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.7:
	ldr	w1, [x19, #20]
	mov	x0, x20
	mov	x2, x22
	bl	_blk_verify_command
	cbz	x0, LBB0_13
LBB0_8:
Lloh11:
	adrp	x8, _EPERM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
LBB0_12:
Lloh15:
	adrp	x8, _CAP_SYS_RAWIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CAP_SYS_RAWIO@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_8
LBB0_13:
	ldr	x8, [x21]
	str	x8, [x19]
Lloh18:
	adrp	x8, _REQ_TYPE_BLOCK_PC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REQ_TYPE_BLOCK_PC@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	w0, [x21, #16]
	bl	_msecs_to_jiffies
	str	x0, [x19, #8]
	cbnz	x0, LBB0_16
; %bb.14:
	ldr	x0, [x20]
	str	x0, [x19, #8]
	cbnz	x0, LBB0_16
; %bb.15:
Lloh21:
	adrp	x8, _BLK_DEFAULT_SG_TIMEOUT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BLK_DEFAULT_SG_TIMEOUT@GOTPAGEOFF]
Lloh23:
	ldr	x0, [x8]
	str	x0, [x19, #8]
LBB0_16:
Lloh24:
	adrp	x8, _BLK_MIN_SG_TIMEOUT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BLK_MIN_SG_TIMEOUT@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_18
; %bb.17:
	mov	w0, #0
	str	x8, [x19, #8]
	b	LBB0_11
LBB0_18:
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_BLK_MAX_CDB,8,3                ; @BLK_MAX_CDB
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_BSG_SUB_PROTOCOL_SCSI_CMD,8,3  ; @BSG_SUB_PROTOCOL_SCSI_CMD
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_CAP_SYS_RAWIO,4,2              ; @CAP_SYS_RAWIO
	.comm	_REQ_TYPE_BLOCK_PC,4,2          ; @REQ_TYPE_BLOCK_PC
	.comm	_BLK_DEFAULT_SG_TIMEOUT,8,3     ; @BLK_DEFAULT_SG_TIMEOUT
	.comm	_BLK_MIN_SG_TIMEOUT,8,3         ; @BLK_MIN_SG_TIMEOUT
	.no_dead_strip	_blk_fill_sgv4_hdr_rq
.subsections_via_symbols
