	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_rx_queue_alloc
_ipw_rx_queue_alloc:                    ## @ipw_rx_queue_alloc
	.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	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_IPW_ERROR
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_2:
	leaq	44(%r14), %rdi
	callq	_spin_lock_init
	leaq	40(%r14), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, %r13
	addq	$24, %r13
	movq	%r13, %rdi
	callq	_INIT_LIST_HEAD
	movq	_RX_FREE_BUFFERS@GOTPCREL(%rip), %rdx
	movq	_RX_QUEUE_SIZE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %eax
	addl	(%rdx), %eax
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rdi
	addq	%rbx, %rdi
	movq	%rsi, %r14
	movq	%r13, %rsi
	movq	%rdx, %r12
	callq	_list_add_tail
	movq	%r14, %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r12, %rdx
	incq	%r15
	movslq	(%r12), %rax
	movslq	(%rsi), %rcx
	addq	%rax, %rcx
	addq	$4, %rbx
	cmpq	%rcx, %r15
	jl	LBB0_4
LBB0_5:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	movq	$0, 16(%r14)
LBB0_6:
	movq	%r14, %rax
	addq	$8, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"memory allocation failed\n"

	.comm	_RX_FREE_BUFFERS,4,2            ## @RX_FREE_BUFFERS
	.comm	_RX_QUEUE_SIZE,4,2              ## @RX_QUEUE_SIZE
	.no_dead_strip	_ipw_rx_queue_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_rx_queue_alloc
_ipw_rx_queue_alloc:                    ; @ipw_rx_queue_alloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_ERROR
	mov	x19, #0
	b	LBB0_6
LBB0_2:
	add	x0, x19, #44
	bl	_spin_lock_init
	add	x0, x19, #40
	bl	_INIT_LIST_HEAD
	add	x20, x19, #24
	mov	x0, x20
	bl	_INIT_LIST_HEAD
Lloh5:
	adrp	x21, _RX_FREE_BUFFERS@GOTPAGE
Lloh6:
	ldr	x21, [x21, _RX_FREE_BUFFERS@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh7:
	adrp	x22, _RX_QUEUE_SIZE@GOTPAGE
Lloh8:
	ldr	x22, [x22, _RX_QUEUE_SIZE@GOTPAGEOFF]
	ldr	w9, [x22]
	add	w8, w9, w8
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x23, #0
	mov	x24, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x0, x8, x23
	mov	x1, x20
	bl	_list_add_tail
	add	x24, x24, #1
	ldrsw	x8, [x21]
	ldrsw	x9, [x22]
	add	x23, x23, #4
	add	x8, x9, x8
	cmp	x24, x8
	b.lt	LBB0_4
LBB0_5:
	stp	xzr, xzr, [x19]
	str	xzr, [x19, #16]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"memory allocation failed\n"

	.comm	_RX_FREE_BUFFERS,4,2            ; @RX_FREE_BUFFERS
	.comm	_RX_QUEUE_SIZE,4,2              ; @RX_QUEUE_SIZE
	.no_dead_strip	_ipw_rx_queue_alloc
.subsections_via_symbols
