	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkt_gather_data
_pkt_gather_data:                       ## @pkt_gather_data
	.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	$56, %rsp
	.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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PACKET_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	xorl	%edi, %edi
	cmpq	$0, 48(%rbx)
	sete	%dil
	callq	_BUG_ON
	leaq	8(%rbx), %rdi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	56(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_memset
	leaq	40(%rbx), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	48(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_5
## %bb.1:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%r12), %r12
	testq	%r12, %r12
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %eax
	subl	(%r15), %eax
	movl	4(%r12), %ecx
	movq	_CD_FRAMESIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	%esi, %edi
	sarl	$9, %edi
	cltd
	idivl	%edi
	movl	%eax, %ebx
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, %r13d
	imull	%eax, %edi
	addl	%edi, (%r14)
	movl	%ebx, %edi
	shrl	$31, %edi
	callq	_BUG_ON
	leal	(%rbx,%r13), %r14d
	xorl	%edi, %edi
	cmpl	4(%r15), %r14d
	setg	%dil
	callq	_BUG_ON
	testl	%r13d, %r13d
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %rdi
	addq	-80(%rbp), %rdi                 ## 8-byte Folded Reload
	leal	1(%rbx), %eax
	cmpl	%eax, %r14d
	cmovgl	%r14d, %eax
	notl	%ebx
	addl	%eax, %ebx
	incq	%rbx
	movl	$1, %esi
	movq	%rbx, %rdx
	callq	_memset
	jmp	LBB0_4
LBB0_5:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 32(%rax)
	je	LBB0_6
## %bb.8:
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_VPRINTK
LBB0_15:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rdx
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_VPRINTK
	incl	8(%r14)
	movq	_CD_FRAMESIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	$9, %eax
	imull	%ebx, %eax
	addl	%eax, 4(%r14)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	4(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.9:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_inc
	movq	_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_pkt_queue_bio
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	movl	4(%r15), %eax
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	cmpq	%rcx, %r12
	jge	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpb	$0, (%rcx,%r12)
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movq	24(%r15), %rax
	movq	(%rax,%r12,8), %r13
	movq	24(%r13), %rbx
	movq	%r13, %rdi
	callq	_bio_init
	movl	$1, 8(%r13)
	movq	_CD_FRAMESIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	sarl	$9, %eax
	imull	%r12d, %eax
	addl	(%r15), %eax
	movl	%eax, (%r13)
	movl	12(%r14), %eax
	movl	%eax, 44(%r13)
	movq	_pkt_end_io_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r13)
	movq	%r15, 32(%r13)
	movq	%rbx, 24(%r13)
	movq	_pkt_bio_destructor@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movl	(%rcx), %eax
	imull	%r12d, %eax
	cltd
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	movl	%edx, %r14d
	movq	16(%r15), %rcx
	movslq	%eax, %rbx
	movl	(%rcx,%rbx,4), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_VPRINTK
	movq	16(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movq	_CD_FRAMESIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r14d, %ecx
	callq	_bio_add_page
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_13
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PACKET_MAX_SIZE,4,2            ## @PACKET_MAX_SIZE
	.comm	_CD_FRAMESIZE,4,2               ## @CD_FRAMESIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pkt_gather_data: zone %llx cached\n"

	.comm	_pkt_end_io_read,4,2            ## @pkt_end_io_read
	.comm	_pkt_bio_destructor,4,2         ## @pkt_bio_destructor
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"pkt_gather_data: Adding frame %d, page:%p offs:%d\n"

	.comm	_READ,4,2                       ## @READ
L_.str.2:                               ## @.str.2
	.asciz	"pkt_gather_data: need %d frames for zone %llx\n"

	.no_dead_strip	_pkt_gather_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkt_gather_data
_pkt_gather_data:                       ; @pkt_gather_data
	.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	x20, x1
	mov	x19, 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, _PACKET_MAX_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PACKET_MAX_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	ldr	x8, [x1, #48]
	cmp	x8, #0
	cset	w0, eq
	bl	_BUG_ON
	add	x22, x20, #8
	mov	x0, x22
	mov	w1, #0
	bl	_atomic_set
	add	x0, x20, #56
	mov	w1, #0
	bl	_atomic_set
	mov	x0, x21
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	add	x23, x20, #40
	mov	x0, x23
	bl	_spin_lock
	ldr	x24, [x20, #48]
Lloh8:
	adrp	x28, _CD_FRAMESIZE@GOTPAGE
Lloh9:
	ldr	x28, [x28, _CD_FRAMESIZE@GOTPAGEOFF]
	cbnz	x24, LBB0_7
LBB0_1:
	mov	x0, x23
	bl	_spin_unlock
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_9
; %bb.2:
	ldr	w1, [x20]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_VPRINTK
LBB0_3:
	mov	w23, #0
LBB0_4:
	ldrsw	x8, [x20]
	str	x8, [sp, #-16]!
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x23
	bl	_VPRINTK
	add	sp, sp, #16
	ldr	w8, [x28]
	asr	w8, w8, #9
	mul	w8, w8, w23
	movi.2s	v0, #1
	mov.s	v0[0], w8
	ldur	d1, [x19, #4]
	add.2s	v0, v0, v1
	stur	d0, [x19, #4]
	ldur	x8, [x29, #-88]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.5:
	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:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x24, [x24, #48]
	cbz	x24, LBB0_1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	ldp	w9, w10, [x24]
	sub	w8, w9, w8
	ldr	w9, [x28]
	asr	w11, w9, #9
	sdiv	w27, w10, w9
	ldr	w9, [x19]
	madd	w9, w27, w11, w9
	str	w9, [x19]
	sdiv	w25, w8, w11
	lsr	w0, w25, #31
	bl	_BUG_ON
	ldr	w8, [x20, #4]
	add	w26, w27, w25
	cmp	w26, w8
	cset	w0, gt
	bl	_BUG_ON
	cmp	w27, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x0, x21, w25, sxtw
	add	w8, w25, #1
	cmp	w26, w8
	csinc	w8, w26, w25, gt
	mvn	w9, w25
	add	w8, w8, w9
	add	x2, x8, #1
	mov	w1, #1
	bl	_memset
	b	LBB0_6
LBB0_9:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.10:
	mov	x24, #0
	mov	w23, #0
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x22
	bl	_atomic_inc
Lloh17:
	adrp	x8, _READ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _READ@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x26, #12]
	mov	x0, x19
	mov	x1, x26
	bl	_pkt_queue_bio
	add	w23, w23, #1
	ldr	w8, [x20, #4]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x24, x24, #1
	cmp	x24, w8, sxtw
	b.ge	LBB0_4
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x21, x24]
	cbnz	w9, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x20, #24]
	ldr	x26, [x8, x24, lsl #3]
	ldr	x27, [x26, #24]
	mov	x0, x26
	bl	_bio_init
	mov	w8, #1
	str	w8, [x26, #8]
	ldr	w8, [x20]
	ldr	w9, [x28]
	asr	w9, w9, #9
	madd	w8, w9, w24, w8
	str	w8, [x26]
	ldr	w8, [x19, #12]
Lloh20:
	adrp	x9, _pkt_end_io_read@GOTPAGE
Lloh21:
	ldr	x9, [x9, _pkt_end_io_read@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x26, #40]
	stp	x27, x20, [x26, #24]
Lloh23:
	adrp	x8, _pkt_bio_destructor@GOTPAGE
Lloh24:
	ldr	x8, [x8, _pkt_bio_destructor@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x26, #16]
	ldr	w8, [x28]
	mul	w8, w8, w24
Lloh26:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w27, w10, w9, w8
	ldr	x8, [x20, #16]
	sbfiz	x25, x10, #2, #32
	ldr	w8, [x8, x25]
	stp	x8, x27, [sp, #-16]!
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x24
	bl	_VPRINTK
	add	sp, sp, #16
	ldr	x8, [x20, #16]
	ldr	w1, [x8, x25]
	ldr	w2, [x28]
	mov	x0, x26
	mov	x3, x27
	bl	_bio_add_page
	cbnz	w0, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	bl	_BUG
	b	LBB0_11
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_PACKET_MAX_SIZE,4,2            ; @PACKET_MAX_SIZE
	.comm	_CD_FRAMESIZE,4,2               ; @CD_FRAMESIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pkt_gather_data: zone %llx cached\n"

	.comm	_pkt_end_io_read,4,2            ; @pkt_end_io_read
	.comm	_pkt_bio_destructor,4,2         ; @pkt_bio_destructor
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"pkt_gather_data: Adding frame %d, page:%p offs:%d\n"

	.comm	_READ,4,2                       ; @READ
l_.str.2:                               ; @.str.2
	.asciz	"pkt_gather_data: need %d frames for zone %llx\n"

	.no_dead_strip	_pkt_gather_data
.subsections_via_symbols
