	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_scsi_simulate              ## -- Begin function ata_scsi_simulate
	.p2align	4, 0x90
_ata_scsi_simulate:                     ## @ata_scsi_simulate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r8
	movq	%rsi, %rbx
	movq	(%rsi), %rax
	movq	%rdi, -24(%rbp)
	movl	(%rdi), %ecx
	movl	%ecx, -32(%rbp)
	movq	%rsi, -40(%rbp)
	movq	%rdx, -48(%rbp)
	movl	(%rax), %ecx
	addl	$-128, %ecx
	cmpl	$15, %ecx
	ja	LBB0_25
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_23:
	movq	_ata_scsiop_noop@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_15:
	movq	_ata_scsiop_mode_sense@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_25:
	movq	_ILLEGAL_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$32, %edx
	xorl	%ecx, %ecx
	movq	%r8, %r14
	callq	_ata_scsi_set_sense
	jmp	LBB0_26
LBB0_16:
	movl	4(%rax), %eax
	andl	$31, %eax
	movq	_SAI_READ_CAPACITY_16@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_24
LBB0_17:
	movq	_ata_scsiop_read_cap@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_20:
	movl	4(%rax), %ecx
	andl	$-9, %ecx
	cmpl	$4, %ecx
	jne	LBB0_24
## %bb.21:
	cmpl	$0, 12(%rax)
	jne	LBB0_24
## %bb.22:
	cmpl	$0, 16(%rax)
	jne	LBB0_24
	jmp	LBB0_23
LBB0_19:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r8, %r14
	callq	_ata_scsi_set_sense
	movq	_DRIVER_SENSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$24, %eax
	movl	%eax, 8(%rbx)
LBB0_26:
	movq	%rbx, %rdi
	movq	%r14, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_18:
	movq	_ata_scsiop_report_luns@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	callq	_ata_scsi_rbuf_fill
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movl	4(%rax), %ecx
	testb	$2, %cl
	jne	LBB0_24
## %bb.3:
	testb	$1, %cl
	jne	LBB0_6
## %bb.4:
	movq	_ata_scsiop_inq_std@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movl	8(%rax), %ecx
	leal	-128(%rcx), %eax
	cmpl	$50, %eax
	ja	LBB0_7
## %bb.27:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	movq	_ata_scsiop_inq_80@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	testl	%ecx, %ecx
	jne	LBB0_24
## %bb.8:
	movq	_ata_scsiop_inq_00@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_24:
	movq	%rbx, %rdi
	movq	%r8, %rsi
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ata_scsi_invalid_field         ## TAILCALL
LBB0_10:
	movq	_ata_scsiop_inq_83@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_11:
	movq	_ata_scsiop_inq_89@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_12:
	movq	_ata_scsiop_inq_b0@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_13:
	movq	_ata_scsiop_inq_b1@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_14:
	movq	_ata_scsiop_inq_b2@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_23
	.long	L0_0_set_23
	.long	L0_0_set_16
	.long	L0_0_set_20
	.long	L0_0_set_23
	.long	L0_0_set_23
	.long	L0_0_set_23
	.long	L0_0_set_19
	.long	L0_0_set_18
	.long	L0_0_set_17
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_24
	.long	L0_0_set_24
	.long	L0_0_set_2
	.long	L0_0_set_24
.set L0_1_set_9, LBB0_9-LJTI0_1
.set L0_1_set_24, LBB0_24-LJTI0_1
.set L0_1_set_10, LBB0_10-LJTI0_1
.set L0_1_set_11, LBB0_11-LJTI0_1
.set L0_1_set_12, LBB0_12-LJTI0_1
.set L0_1_set_13, LBB0_13-LJTI0_1
.set L0_1_set_14, LBB0_14-LJTI0_1
LJTI0_1:
	.long	L0_1_set_9
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_10
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_11
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_12
	.long	L0_1_set_13
	.long	L0_1_set_14
	.end_data_region
                                        ## -- End function
	.comm	_ata_scsiop_inq_std,4,2         ## @ata_scsiop_inq_std
	.comm	_ata_scsiop_inq_00,4,2          ## @ata_scsiop_inq_00
	.comm	_ata_scsiop_inq_80,4,2          ## @ata_scsiop_inq_80
	.comm	_ata_scsiop_inq_83,4,2          ## @ata_scsiop_inq_83
	.comm	_ata_scsiop_inq_89,4,2          ## @ata_scsiop_inq_89
	.comm	_ata_scsiop_inq_b0,4,2          ## @ata_scsiop_inq_b0
	.comm	_ata_scsiop_inq_b1,4,2          ## @ata_scsiop_inq_b1
	.comm	_ata_scsiop_inq_b2,4,2          ## @ata_scsiop_inq_b2
	.comm	_ata_scsiop_mode_sense,4,2      ## @ata_scsiop_mode_sense
	.comm	_ata_scsiop_read_cap,4,2        ## @ata_scsiop_read_cap
	.comm	_SAI_READ_CAPACITY_16,4,2       ## @SAI_READ_CAPACITY_16
	.comm	_ata_scsiop_report_luns,4,2     ## @ata_scsiop_report_luns
	.comm	_DRIVER_SENSE,4,2               ## @DRIVER_SENSE
	.comm	_ata_scsiop_noop,4,2            ## @ata_scsiop_noop
	.comm	_ILLEGAL_REQUEST,4,2            ## @ILLEGAL_REQUEST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_scsi_simulate              ; -- Begin function ata_scsi_simulate
	.p2align	2
_ata_scsi_simulate:                     ; @ata_scsi_simulate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x8, [x1]
	str	x0, [sp, #40]
	ldr	w9, [x0]
	str	w9, [sp, #32]
	stp	x2, x1, [sp, #16]
	ldr	w9, [x8]
	sub	w9, w9, #128
	cmp	w9, #15
	b.hi	LBB0_4
; %bb.1:
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh2:
	adrp	x8, _ata_scsiop_noop@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ata_scsiop_noop@GOTPAGEOFF]
	b	LBB0_13
LBB0_3:
Lloh4:
	adrp	x8, _ata_scsiop_mode_sense@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ata_scsiop_mode_sense@GOTPAGEOFF]
	b	LBB0_13
LBB0_4:
Lloh6:
	adrp	x8, _ILLEGAL_REQUEST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ILLEGAL_REQUEST@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	w2, #32
	mov	w3, #0
	bl	_ata_scsi_set_sense
	b	LBB0_11
LBB0_5:
	ldr	w8, [x8, #4]
	and	w8, w8, #0x1f
Lloh9:
	adrp	x9, _SAI_READ_CAPACITY_16@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SAI_READ_CAPACITY_16@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_22
LBB0_6:
Lloh12:
	adrp	x8, _ata_scsiop_read_cap@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ata_scsiop_read_cap@GOTPAGEOFF]
	b	LBB0_13
LBB0_7:
	ldr	w9, [x8, #4]
	and	w9, w9, #0xfffffff7
	cmp	w9, #4
	b.ne	LBB0_22
; %bb.8:
	ldr	w9, [x8, #12]
	cbnz	w9, LBB0_22
; %bb.9:
	ldr	w8, [x8, #16]
	cbnz	w8, LBB0_22
	b	LBB0_2
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	w2, #0
	mov	w3, #0
	bl	_ata_scsi_set_sense
Lloh14:
	adrp	x8, _DRIVER_SENSE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DRIVER_SENSE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	lsl	w8, w8, #24
	str	w8, [x19, #8]
LBB0_11:
	mov	x0, x19
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	br	x1
LBB0_12:
Lloh17:
	adrp	x8, _ata_scsiop_report_luns@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ata_scsiop_report_luns@GOTPAGEOFF]
LBB0_13:
	ldr	w1, [x8]
	add	x0, sp, #16
	bl	_ata_scsi_rbuf_fill
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_14:
	ldr	w9, [x8, #4]
	tbnz	w9, #1, LBB0_22
; %bb.15:
	tbnz	w9, #0, LBB0_17
; %bb.16:
Lloh19:
	adrp	x8, _ata_scsiop_inq_std@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ata_scsiop_inq_std@GOTPAGEOFF]
	b	LBB0_13
LBB0_17:
	ldr	w8, [x8, #8]
	sub	w9, w8, #128
	cmp	w9, #50
	b.hi	LBB0_20
; %bb.18:
Lloh21:
	adrp	x8, lJTI0_1@PAGE
Lloh22:
	add	x8, x8, lJTI0_1@PAGEOFF
	adr	x10, LBB0_19
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_19:
Lloh23:
	adrp	x8, _ata_scsiop_inq_80@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ata_scsiop_inq_80@GOTPAGEOFF]
	b	LBB0_13
LBB0_20:
	cbnz	w8, LBB0_22
; %bb.21:
Lloh25:
	adrp	x8, _ata_scsiop_inq_00@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ata_scsiop_inq_00@GOTPAGEOFF]
	b	LBB0_13
LBB0_22:
	mov	x0, x19
	mov	x1, x2
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_ata_scsi_invalid_field
LBB0_23:
Lloh27:
	adrp	x8, _ata_scsiop_inq_83@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ata_scsiop_inq_83@GOTPAGEOFF]
	b	LBB0_13
LBB0_24:
Lloh29:
	adrp	x8, _ata_scsiop_inq_89@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ata_scsiop_inq_89@GOTPAGEOFF]
	b	LBB0_13
LBB0_25:
Lloh31:
	adrp	x8, _ata_scsiop_inq_b0@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ata_scsiop_inq_b0@GOTPAGEOFF]
	b	LBB0_13
LBB0_26:
Lloh33:
	adrp	x8, _ata_scsiop_inq_b1@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ata_scsiop_inq_b1@GOTPAGEOFF]
	b	LBB0_13
LBB0_27:
Lloh35:
	adrp	x8, _ata_scsiop_inq_b2@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ata_scsiop_inq_b2@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_22-LBB0_2)>>2
	.byte	(LBB0_22-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_22-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_19-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_23-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_24-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_25-LBB0_19)>>2
	.byte	(LBB0_26-LBB0_19)>>2
	.byte	(LBB0_27-LBB0_19)>>2
                                        ; -- End function
	.comm	_ata_scsiop_inq_std,4,2         ; @ata_scsiop_inq_std
	.comm	_ata_scsiop_inq_00,4,2          ; @ata_scsiop_inq_00
	.comm	_ata_scsiop_inq_80,4,2          ; @ata_scsiop_inq_80
	.comm	_ata_scsiop_inq_83,4,2          ; @ata_scsiop_inq_83
	.comm	_ata_scsiop_inq_89,4,2          ; @ata_scsiop_inq_89
	.comm	_ata_scsiop_inq_b0,4,2          ; @ata_scsiop_inq_b0
	.comm	_ata_scsiop_inq_b1,4,2          ; @ata_scsiop_inq_b1
	.comm	_ata_scsiop_inq_b2,4,2          ; @ata_scsiop_inq_b2
	.comm	_ata_scsiop_mode_sense,4,2      ; @ata_scsiop_mode_sense
	.comm	_ata_scsiop_read_cap,4,2        ; @ata_scsiop_read_cap
	.comm	_SAI_READ_CAPACITY_16,4,2       ; @SAI_READ_CAPACITY_16
	.comm	_ata_scsiop_report_luns,4,2     ; @ata_scsiop_report_luns
	.comm	_DRIVER_SENSE,4,2               ; @DRIVER_SENSE
	.comm	_ata_scsiop_noop,4,2            ; @ata_scsiop_noop
	.comm	_ILLEGAL_REQUEST,4,2            ; @ILLEGAL_REQUEST
.subsections_via_symbols
