	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_scq
_alloc_scq:                             ## @alloc_scq
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movl	(%r14), %edi
	movq	_SCQ_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rax, %rdx
	callq	_pci_alloc_consistent
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	(%r14), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	24(%rbx), %rax
	movq	%rax, 16(%rbx)
	movq	_SCQ_ENTRIES@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	$-4, %rax
	movq	%rax, 8(%rbx)
	leaq	48(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	44(%rbx), %rdi
	callq	_spin_lock_init
	leaq	40(%rbx), %rdi
	callq	_spin_lock_init
	leaq	36(%rbx), %rdi
	callq	_skb_queue_head_init
	movq	%rbx, %rdi
	addq	$32, %rdi
	callq	_skb_queue_head_init
	movq	24(%rbx), %rsi
	movq	16(%rbx), %rdx
	movq	(%rbx), %r8
	movq	8(%rbx), %rcx
	leaq	L_.str(%rip), %rdi
	callq	_TXPRINTK
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_SCQ_SIZE,4,2                   ## @SCQ_SIZE
	.comm	_SCQ_ENTRIES,4,2                ## @SCQ_ENTRIES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"idt77252: SCQ: base 0x%p, next 0x%p, last 0x%p, paddr %08llx\n"

	.no_dead_strip	_alloc_scq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_scq
_alloc_scq:                             ; @alloc_scq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x20]
Lloh3:
	adrp	x20, _SCQ_SIZE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _SCQ_SIZE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x2, x19
	bl	_pci_alloc_consistent
	str	x0, [x19, #24]
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w2, [x20]
	mov	w1, #0
	bl	_memset
	ldr	x8, [x19, #24]
Lloh5:
	adrp	x9, _SCQ_ENTRIES@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SCQ_ENTRIES@GOTPAGEOFF]
Lloh7:
	ldrsw	x9, [x9]
	add	x9, x8, x9, lsl #2
	sub	x9, x9, #4
	stp	x9, x8, [x19, #8]
	add	x0, x19, #48
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #44
	bl	_spin_lock_init
	add	x0, x19, #40
	bl	_spin_lock_init
	add	x0, x19, #36
	bl	_skb_queue_head_init
	add	x0, x19, #32
	bl	_skb_queue_head_init
	ldp	x2, x1, [x19, #16]
	ldp	x4, x3, [x19]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TXPRINTK
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_SCQ_SIZE,4,2                   ; @SCQ_SIZE
	.comm	_SCQ_ENTRIES,4,2                ; @SCQ_ENTRIES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"idt77252: SCQ: base 0x%p, next 0x%p, last 0x%p, paddr %08llx\n"

	.no_dead_strip	_alloc_scq
.subsections_via_symbols
