	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_rx_agg
_alloc_rx_agg:                          ## @alloc_rx_agg
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_dev_to_node
	movl	%eax, %ebx
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %ebx
LBB0_3:
	movl	12(%r14), %edi
	callq	_get_order
	movl	%eax, %r12d
	movl	$32, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_kmalloc_node
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %rbx
	movq	___GFP_COMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	%r15d, %edi
	movl	%r12d, %esi
	callq	_alloc_pages
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%eax, %edi
	callq	_page_address
	movl	%eax, 28(%rbx)
	xorl	%edi, %edi
	movl	%r15d, %esi
	callq	_usb_alloc_urb
	movl	%eax, 24(%rbx)
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	%r14, 16(%rbx)
	leaq	8(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_INIT_LIST_HEAD
	leaq	4(%r14), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	leaq	8(%r14), %rsi
	movq	%r15, %rdi
	callq	_list_add_tail
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	callq	_atomic_inc
	jmp	LBB0_10
LBB0_7:
	movl	(%rbx), %edi
	movl	%r12d, %esi
	callq	___free_pages
LBB0_8:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___GFP_COMP,4,2                 ## @__GFP_COMP
	.no_dead_strip	_alloc_rx_agg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_rx_agg
_alloc_rx_agg:                          ; @alloc_rx_agg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x0, [x8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_dev_to_node
	mov	x20, x0
	b	LBB0_3
LBB0_2:
	mov	w20, #-1
LBB0_3:
	ldr	w0, [x19, #12]
	bl	_get_order
	mov	x22, x0
	mov	w0, #32
	mov	x1, x21
	mov	x2, x20
	bl	_kmalloc_node
	mov	x20, x0
	cbz	x0, LBB0_9
; %bb.4:
Lloh0:
	adrp	x8, ___GFP_COMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___GFP_COMP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w0, w8, w21
	mov	x1, x22
	bl	_alloc_pages
	str	w0, [x20]
	cbz	w0, LBB0_8
; %bb.5:
	bl	_page_address
	str	w0, [x20, #28]
	mov	w0, #0
	mov	x1, x21
	bl	_usb_alloc_urb
	str	w0, [x20, #24]
	cbz	w0, LBB0_7
; %bb.6:
	str	x19, [x20, #16]
	add	x0, x20, #8
	bl	_INIT_LIST_HEAD
	add	x21, x20, #4
	mov	x0, x21
	bl	_INIT_LIST_HEAD
	add	x22, x19, #4
	mov	x0, x22
	bl	_spin_lock_irqsave
	add	x1, x19, #8
	mov	x0, x21
	bl	_list_add_tail
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_atomic_inc
	b	LBB0_9
LBB0_7:
	ldr	w0, [x20]
	mov	x1, x22
	bl	___free_pages
LBB0_8:
	mov	x0, x20
	bl	_kfree
	mov	x20, #0
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	___GFP_COMP,4,2                 ; @__GFP_COMP
	.no_dead_strip	_alloc_rx_agg
.subsections_via_symbols
