	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lio_setup_glists               ## -- Begin function lio_setup_glists
	.p2align	4, 0x90
_lio_setup_glists:                      ## @lio_setup_glists
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movl	%r15d, %edi
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movl	(%r14), %edx
	movl	%r15d, %edi
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	movq	_OCTNIC_MAX_SG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ROUNDUP4
	sarl	$2, %eax
	movq	_OCT_SG_ENTRY_SIZE@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	%eax, %edi
	callq	_ROUNDUP8
	movl	%eax, (%rbx)
	movl	(%r14), %edx
	movl	%r15d, %edi
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 24(%rbx)
	movl	(%r14), %edx
	movl	%r15d, %edi
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 16(%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_15
## %bb.3:
	testq	%rax, %rax
	je	LBB0_15
## %bb.4:
	testl	%r15d, %r15d
	jle	LBB0_19
## %bb.5:
	movl	%r15d, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rdi
	callq	_dev_to_node
	movl	%eax, %r15d
	leaq	(,%r13,4), %r14
	movq	32(%rbx), %rdi
	addq	%r14, %rdi
	callq	_spin_lock_init
	movq	8(%rbx), %rdi
	addq	%r14, %rdi
	callq	_INIT_LIST_HEAD
	movl	4(%rbx), %esi
	imull	(%rbx), %esi
	leaq	(,%r13,8), %rdx
	addq	16(%rbx), %rdx
	movq	%r12, %rdi
	callq	_lio_dma_alloc
	movq	24(%rbx), %rcx
	movq	%rax, (%rcx,%r13,8)
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%rbx), %eax
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jg	LBB0_9
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=2
	movq	24(%rbx), %rcx
	movslq	(%rbx), %rdx
	movslq	%r12d, %r12
	imulq	%r12, %rdx
	movq	(%rcx,%r13,8), %rcx
	addq	%rdx, %rcx
	movq	%rcx, 16(%rax)
	movq	16(%rbx), %rcx
	addq	(%rcx,%r13,8), %rdx
	movq	%rdx, 8(%rax)
	movq	8(%rbx), %rsi
	addq	%r14, %rsi
	movq	%rax, %rdi
	callq	_list_add_tail
	incl	%r12d
	movl	4(%rbx), %eax
	cmpl	%eax, %r12d
	jge	LBB0_12
LBB0_9:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	movl	%r15d, %edx
	callq	_kzalloc_node
	testq	%rax, %rax
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	jne	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%rbx), %eax
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%eax, %r12d
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	cmpq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	jne	LBB0_6
LBB0_19:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_15:
	movq	%rbx, %rdi
	callq	_lio_delete_glists
	jmp	LBB0_17
LBB0_16:
	movq	32(%rbx), %rdi
	callq	_kfree
	movq	$0, 32(%rbx)
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_OCTNIC_MAX_SG,4,2              ## @OCTNIC_MAX_SG
	.comm	_OCT_SG_ENTRY_SIZE,4,2          ## @OCT_SG_ENTRY_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lio_setup_glists               ; -- Begin function lio_setup_glists
	.p2align	2
_lio_setup_glists:                      ; @lio_setup_glists
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x21
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_19
; %bb.1:
	ldr	w2, [x22]
	mov	x0, x21
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_18
; %bb.2:
Lloh2:
	adrp	x8, _OCTNIC_MAX_SG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OCTNIC_MAX_SG@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_ROUNDUP4
	asr	w8, w0, #2
Lloh5:
	adrp	x9, _OCT_SG_ENTRY_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _OCT_SG_ENTRY_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	mul	w0, w8, w9
	bl	_ROUNDUP8
	str	w0, [x19]
	ldr	w2, [x22]
	mov	x0, x21
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19, #24]
	ldr	w2, [x22]
	mov	x0, x21
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19, #16]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_17
; %bb.3:
	cbz	x0, LBB0_17
; %bb.4:
	cmp	w21, #1
	b.lt	LBB0_16
; %bb.5:
	mov	x23, #0
	mov	w24, w21
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x0, [x20]
	bl	_dev_to_node
	mov	x21, x0
	ldr	x8, [x19, #32]
	lsl	x25, x23, #2
	add	x0, x8, x25
	bl	_spin_lock_init
	ldr	x8, [x19, #8]
	add	x0, x8, x25
	bl	_INIT_LIST_HEAD
	ldp	w8, w9, [x19]
	mul	w1, w9, w8
	ldr	x8, [x19, #16]
	lsl	x25, x23, #3
	add	x2, x8, x25
	mov	x0, x20
	bl	_lio_dma_alloc
	ldr	x8, [x19, #24]
	str	x0, [x8, x25]
	cbz	x0, LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w26, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x25]
	ldrsw	x9, [x19]
	sxtw	x10, w26
	mul	x9, x9, x10
	add	x8, x8, x9
	str	x8, [x0, #16]
	ldp	x10, x8, [x19, #8]
	ldr	x8, [x8, x25]
	add	x8, x8, x9
	str	x8, [x0, #8]
	add	x1, x10, x23, lsl #2
	bl	_list_add_tail
	add	w26, w26, #1
	ldr	w8, [x19, #4]
	cmp	w26, w8
	b.ge	LBB0_14
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x22]
	mov	w0, #24
	mov	x2, x21
	bl	_kzalloc_node
	cbnz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w1, [x22]
	mov	w0, #24
	bl	_kzalloc
	cbnz	x0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19, #4]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w26, #0
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w26, w8
	b.ne	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	cmp	x23, x24
	b.ne	LBB0_6
LBB0_16:
	mov	w0, #0
	b	LBB0_20
LBB0_17:
	mov	x0, x19
	bl	_lio_delete_glists
	b	LBB0_19
LBB0_18:
	ldr	x0, [x19, #32]
	bl	_kfree
	str	xzr, [x19, #32]
LBB0_19:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_OCTNIC_MAX_SG,4,2              ; @OCTNIC_MAX_SG
	.comm	_OCT_SG_ENTRY_SIZE,4,2          ; @OCT_SG_ENTRY_SIZE
.subsections_via_symbols
