	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkt_run_state_machine
_pkt_run_state_machine:                 ## @pkt_run_state_machine
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	36(%rsi), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_VPRINTK
	leaq	16(%rbx), %r15
	leaq	20(%rbx), %r12
	leaq	LJTI0_0(%rip), %r13
	jmp	LBB0_1
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_BUG
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_16
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r13,%rax,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_atomic_read
	testl	%eax, %eax
	jg	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_BIO_UPTODATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_11
	jmp	LBB0_8
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	32(%rbx), %eax
	cmpl	28(%rbx), %eax
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 24(%rbx)
	jg	LBB0_17
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, 24(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pkt_gather_data
	movq	%rbx, %rdi
	movl	$131, %esi
	callq	_pkt_set_state
	jmp	LBB0_1
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_pkt_start_recovery
	testl	%eax, %eax
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_VPRINTK
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movl	$132, %esi
	callq	_pkt_set_state
	jmp	LBB0_1
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_atomic_read
	testl	%eax, %eax
	jg	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_atomic_read
	testl	%eax, %eax
	jle	LBB0_13
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movl	$130, %esi
	callq	_pkt_set_state
	jmp	LBB0_1
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pkt_start_write
	jmp	LBB0_1
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_BIO_UPTODATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rsi
	callq	_test_bit
	movq	%rbx, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pkt_finish_packet              ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_3
	.long	L0_0_set_12
	.long	L0_0_set_6
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"run_state_machine: pkt %d\n"

	.comm	_BIO_UPTODATE,4,2               ## @BIO_UPTODATE
L_.str.1:                               ## @.str.1
	.asciz	"No recovery possible\n"

	.no_dead_strip	_pkt_run_state_machine
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkt_run_state_machine
_pkt_run_state_machine:                 ; @pkt_run_state_machine
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1, #36]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_VPRINTK
	add	x21, x19, #16
	add	x22, x19, #20
Lloh2:
	adrp	x25, lJTI0_0@PAGE
Lloh3:
	add	x25, x25, lJTI0_0@PAGEOFF
Lloh4:
	adrp	x24, _BIO_UPTODATE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _BIO_UPTODATE@GOTPAGEOFF]
Lloh6:
	adrp	x23, l_.str.1@PAGE
Lloh7:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_BUG
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x9, LBB0_4
	ldrb	w10, [x25, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_atomic_read
	cmp	w0, #0
	b.gt	LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x24]
	ldr	x1, [x19, #8]
	bl	_test_bit
	cbnz	w0, LBB0_11
	b	LBB0_14
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldp	w9, w8, [x19, #28]
	cmp	w8, w9
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #24]
	cmp	w8, #0
	b.gt	LBB0_16
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	wzr, [x19, #24]
	mov	x0, x20
	mov	x1, x19
	bl	_pkt_gather_data
	mov	x0, x19
	mov	w1, #131
	bl	_pkt_set_state
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_pkt_start_recovery
	cbnz	w0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_VPRINTK
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	w1, #132
	bl	_pkt_set_state
	b	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_atomic_read
	cmp	w0, #0
	b.gt	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_atomic_read
	cmp	w0, #1
	b.lt	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	w1, #130
	bl	_pkt_set_state
	b	LBB0_2
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_pkt_start_write
	b	LBB0_2
LBB0_16:
	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
	add	sp, sp, #96
	ret
LBB0_17:
	ldr	w0, [x24]
	ldr	x1, [x19, #8]
	bl	_test_bit
	mov	x1, x0
	mov	x0, x19
	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
	add	sp, sp, #96
	b	_pkt_finish_packet
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_17-LBB0_4)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"run_state_machine: pkt %d\n"

	.comm	_BIO_UPTODATE,4,2               ; @BIO_UPTODATE
l_.str.1:                               ; @.str.1
	.asciz	"No recovery possible\n"

	.no_dead_strip	_pkt_run_state_machine
.subsections_via_symbols
