	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_packet_cmd
_handle_packet_cmd:                     ## @handle_packet_cmd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	256(%rdx), %eax
	addl	$-128, %eax
	cmpl	$11, %eax
	ja	LBB0_13
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movl	16(%rdx), %eax
	andl	$-8, %eax
	movq	_ATA_I_CMD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_ATA_I_IN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 16(%rdx)
	movq	_ATA_S_READY@GOTPCREL(%rip), %rax
	movq	_ATA_S_DSC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_3
LBB0_8:
	xorl	%ecx, %ecx
	popq	%rbp
	jmp	_atapi_read                     ## TAILCALL
LBB0_10:
	popq	%rbp
	jmp	_atapi_start_stop_unit          ## TAILCALL
LBB0_9:
	popq	%rbp
	jmp	_atapi_request_sense            ## TAILCALL
LBB0_7:
	popq	%rbp
	jmp	_atapi_report_luns              ## TAILCALL
LBB0_6:
	popq	%rbp
	jmp	_atapi_read_toc                 ## TAILCALL
LBB0_5:
	popq	%rbp
	jmp	_atapi_read_capacity            ## TAILCALL
LBB0_11:
	popq	%rbp
	jmp	_atapi_mode_sense               ## TAILCALL
LBB0_4:
	popq	%rbp
	jmp	_atapi_inquiry                  ## TAILCALL
LBB0_12:
	popq	%rbp
	jmp	_atapi_get_event_status_notification ## TAILCALL
LBB0_13:
	movl	16(%rdx), %eax
	andl	$-8, %eax
	movq	_ATA_I_CMD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_ATA_I_IN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 16(%rdx)
	movq	_ATA_SENSE_ILLEGAL_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%rdi)
	movl	$32, 4(%rdi)
	shll	$12, %ecx
	movq	_ATA_S_READY@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_ATA_S_ERROR@GOTPCREL(%rip), %rax
LBB0_3:
	orl	(%rax), %ecx
	popq	%rbp
	jmp	_ahci_write_fis_d2h             ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_2
	.long	L0_0_set_11
	.long	L0_0_set_4
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_ATA_I_CMD,4,2                  ## @ATA_I_CMD
	.comm	_ATA_I_IN,4,2                   ## @ATA_I_IN
	.comm	_ATA_S_READY,4,2                ## @ATA_S_READY
	.comm	_ATA_S_DSC,4,2                  ## @ATA_S_DSC
	.comm	_ATA_SENSE_ILLEGAL_REQUEST,4,2  ## @ATA_SENSE_ILLEGAL_REQUEST
	.comm	_ATA_S_ERROR,4,2                ## @ATA_S_ERROR
	.no_dead_strip	_handle_packet_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_packet_cmd
_handle_packet_cmd:                     ; @handle_packet_cmd
	.cfi_startproc
; %bb.0:
	ldr	w8, [x2, #256]
	sub	w8, w8, #128
	cmp	w8, #11
	b.hi	LBB0_12
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x2, #16]
	and	w8, w8, #0xfffffff8
Lloh2:
	adrp	x9, _ATA_I_CMD@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ATA_I_CMD@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh5:
	adrp	x9, _ATA_I_IN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ATA_I_IN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x2, #16]
Lloh8:
	adrp	x8, _ATA_S_READY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATA_S_READY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _ATA_S_DSC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ATA_S_DSC@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w3, w9, w8
	b	_ahci_write_fis_d2h
LBB0_3:
	mov	w3, #0
	b	_atapi_read
LBB0_4:
	b	_atapi_start_stop_unit
LBB0_5:
	b	_atapi_request_sense
LBB0_6:
	b	_atapi_report_luns
LBB0_7:
	b	_atapi_read_toc
LBB0_8:
	b	_atapi_read_capacity
LBB0_9:
	b	_atapi_mode_sense
LBB0_10:
	b	_atapi_inquiry
LBB0_11:
	b	_atapi_get_event_status_notification
LBB0_12:
	ldr	w8, [x2, #16]
	and	w8, w8, #0xfffffff8
Lloh14:
	adrp	x9, _ATA_I_CMD@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ATA_I_CMD@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _ATA_I_IN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ATA_I_IN@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x2, #16]
Lloh20:
	adrp	x8, _ATA_SENSE_ILLEGAL_REQUEST@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ATA_SENSE_ILLEGAL_REQUEST@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	mov	w9, #32
	stp	w8, w9, [x0]
Lloh23:
	adrp	x9, _ATA_S_READY@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ATA_S_READY@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w9, w8, lsl #12
Lloh26:
	adrp	x9, _ATA_S_ERROR@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ATA_S_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w3, w8, w9
	b	_ahci_write_fis_d2h
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_ATA_I_CMD,4,2                  ; @ATA_I_CMD
	.comm	_ATA_I_IN,4,2                   ; @ATA_I_IN
	.comm	_ATA_S_READY,4,2                ; @ATA_S_READY
	.comm	_ATA_S_DSC,4,2                  ; @ATA_S_DSC
	.comm	_ATA_SENSE_ILLEGAL_REQUEST,4,2  ; @ATA_SENSE_ILLEGAL_REQUEST
	.comm	_ATA_S_ERROR,4,2                ; @ATA_S_ERROR
	.no_dead_strip	_handle_packet_cmd
.subsections_via_symbols
