	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sg_io
_sg_io:                                 ## @sg_io
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SCSI_SENSE_BUFFERSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdx
	cmpb	$83, (%r13)
	jne	LBB0_1
## %bb.3:
	movq	8(%r13), %rax
	movq	_BLK_MAX_CDB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_28:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_30
## %bb.29:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	16(%r13), %ebx
	movq	%r15, %rdi
	callq	_queue_max_hw_sectors
	shll	$9, %eax
	cmpl	%eax, %ebx
	jle	LBB0_6
## %bb.5:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	cmpl	$0, 16(%r13)
	je	LBB0_7
## %bb.8:
	movl	20(%r13), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	jae	LBB0_1
## %bb.9:
	cltq
	leaq	l_switch.table.sg_io(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_READ@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_blk_get_request
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	callq	_blk_fill_sghdr_rq
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_blk_put_request
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_11:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_14:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	24(%r13), %ebx
	testl	%ebx, %ebx
	je	LBB0_24
## %bb.15:
	shll	$2, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.19:
	movq	%rax, %r14
	movl	32(%r13), %esi
	movq	%rax, %rdi
	movl	%ebx, %edx
	callq	_copy_from_user
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	%r14, %rdi
	callq	_kfree
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_24:
	movslq	16(%r13), %r8
	testq	%r8, %r8
	je	LBB0_27
## %bb.25:
	movl	32(%r13), %ecx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_blk_rq_map_user
	movl	%eax, %ebx
	jmp	LBB0_26
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_17:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_21:
	movl	24(%r13), %esi
	movq	%r14, %rdi
	callq	_iov_length
	movslq	16(%r13), %rdx
	movl	24(%r13), %r8d
	cmpq	%rdx, %rax
	jbe	LBB0_23
## %bb.22:
	movq	%r14, %rdi
	movl	%r8d, %esi
	callq	_iov_shorten
	movl	%eax, %r8d
	movl	%eax, 24(%r13)
	movslq	16(%r13), %rax
LBB0_23:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	movq	%r14, %rcx
	movq	%rax, %r9
	pushq	%rbx
	callq	_blk_rq_map_user_iov
	addq	$16, %rsp
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_kfree
LBB0_26:
	testl	%ebx, %ebx
	je	LBB0_27
LBB0_18:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_blk_put_request
	jmp	LBB0_28
LBB0_27:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	24(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	movq	%rbx, (%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	movq	%r15, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_blk_execute_rq
	movq	(%r12), %rdi
	subq	%rbx, %rdi
	callq	_jiffies_to_msecs
	movl	%eax, 28(%r13)
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_blk_complete_sghdr_rq
	movl	%eax, %ebx
	jmp	LBB0_28
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SCSI_SENSE_BUFFERSIZE,4,2      ## @SCSI_SENSE_BUFFERSIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BLK_MAX_CDB,8,3                ## @BLK_MAX_CDB
	.comm	_EIO,4,2                        ## @EIO
	.comm	_WRITE,4,2                      ## @WRITE
	.comm	_READ,4,2                       ## @READ
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_sg_io
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.sg_io
l_switch.table.sg_io:
	.quad	_READ
	.quad	_WRITE
	.quad	_READ

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sg_io
_sg_io:                                 ; @sg_io
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x25, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _SCSI_SENSE_BUFFERSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCSI_SENSE_BUFFERSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
	ldrb	w8, [x2]
	cmp	w8, #83
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _BLK_MAX_CDB@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BLK_MAX_CDB@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_6
LBB0_2:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_4:
	ldur	x8, [x29, #-88]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.5:
	mov	x0, x26
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w24, [x19, #16]
	mov	x0, x21
	bl	_queue_max_hw_sectors
	cmp	w24, w0, lsl #9
	b.le	LBB0_8
; %bb.7:
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_3
LBB0_8:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_11
; %bb.9:
	ldr	w8, [x19, #20]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hs	LBB0_2
; %bb.10:
Lloh18:
	adrp	x9, l_switch.table.sg_io@PAGE
Lloh19:
	add	x9, x9, l_switch.table.sg_io@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_12
LBB0_11:
Lloh20:
	adrp	x8, _READ@GOTPAGE
Lloh21:
	ldr	x8, [x8, _READ@GOTPAGEOFF]
LBB0_12:
	ldr	w1, [x8]
Lloh22:
	adrp	x27, _GFP_KERNEL@GOTPAGE
Lloh23:
	ldr	x27, [x27, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x0, x21
	bl	_blk_get_request
	cbz	x0, LBB0_15
; %bb.13:
	mov	x24, x0
	mov	x0, x21
	mov	x1, x24
	mov	x2, x19
	mov	x3, x25
	bl	_blk_fill_sghdr_rq
	cbz	x0, LBB0_16
; %bb.14:
	mov	x0, x24
	bl	_blk_put_request
Lloh24:
	adrp	x8, _EFAULT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_3
LBB0_15:
Lloh26:
	adrp	x8, _ENODEV@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_3
LBB0_16:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_20
; %bb.17:
	lsl	w26, w8, #2
	ldr	w1, [x27]
	mov	x0, x26
	bl	_kmalloc
	cbz	x0, LBB0_22
; %bb.18:
	mov	x25, x0
	ldr	w1, [x19, #32]
	mov	x2, x26
	bl	_copy_from_user
	cbz	x0, LBB0_24
; %bb.19:
	mov	x0, x25
	bl	_kfree
Lloh28:
	adrp	x8, _EFAULT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_23
LBB0_20:
	ldrsw	x4, [x19, #16]
	cbz	w4, LBB0_30
; %bb.21:
	ldr	w3, [x19, #32]
	ldr	w5, [x27]
	mov	x0, x21
	mov	x1, x24
	mov	x2, #0
	bl	_blk_rq_map_user
	mov	x26, x0
	b	LBB0_28
LBB0_22:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_23:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_29
LBB0_24:
	ldr	w1, [x19, #24]
	mov	x0, x25
	bl	_iov_length
	ldrsw	x2, [x19, #16]
	ldr	w4, [x19, #24]
	cmp	x0, x2
	b.ls	LBB0_26
; %bb.25:
	mov	x0, x25
	mov	x1, x4
	bl	_iov_shorten
	mov	x4, x0
	str	w0, [x19, #24]
	ldrsw	x5, [x19, #16]
	b	LBB0_27
LBB0_26:
	mov	x5, x0
LBB0_27:
	ldr	w6, [x27]
	mov	x0, x21
	mov	x1, x24
	mov	x2, #0
	mov	x3, x25
	bl	_blk_rq_map_user_iov
	mov	x26, x0
	mov	x0, x25
	bl	_kfree
LBB0_28:
	cbz	w26, LBB0_30
LBB0_29:
	mov	x0, x24
	bl	_blk_put_request
	b	LBB0_4
LBB0_30:
	ldr	x25, [x24, #24]
	mov	x0, x23
	mov	w1, #0
	mov	x2, x22
	bl	_memset
	stp	xzr, xzr, [x24, #8]
	str	x23, [x24]
Lloh32:
	adrp	x22, _jiffies@GOTPAGE
Lloh33:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x23, [x22]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	mov	w3, #0
	bl	_blk_execute_rq
	ldr	x8, [x22]
	sub	x0, x8, x23
	bl	_jiffies_to_msecs
	str	w0, [x19, #28]
	mov	x0, x24
	mov	x1, x19
	mov	x2, x25
	bl	_blk_complete_sghdr_rq
	mov	x26, x0
	b	LBB0_4
LBB0_31:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_SCSI_SENSE_BUFFERSIZE,4,2      ; @SCSI_SENSE_BUFFERSIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BLK_MAX_CDB,8,3                ; @BLK_MAX_CDB
	.comm	_EIO,4,2                        ; @EIO
	.comm	_WRITE,4,2                      ; @WRITE
	.comm	_READ,4,2                       ; @READ
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_sg_io
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.sg_io
l_switch.table.sg_io:
	.quad	_READ
	.quad	_WRITE
	.quad	_READ

.subsections_via_symbols
