	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_proxy_bufs
_alloc_proxy_bufs:                      ## @alloc_proxy_bufs
	.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	%rsi, %r15
	movq	%rdi, %r14
	movl	8(%rsi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kmalloc_array
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	cmpl	$0, 8(%r15)
	jle	LBB0_12
## %bb.2:
	xorl	%ebx, %ebx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kmalloc
	movq	(%r15), %rcx
	movq	%rax, (%rcx,%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %ecx
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$4, %edx
	callq	_ib_dma_map_single
	movq	(%r15), %rcx
	movl	%eax, 8(%rcx,%rbx)
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ib_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movslq	8(%r15), %rax
	addq	$16, %rbx
	cmpq	%rax, %r13
	jl	LBB0_3
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_5:
	movq	(%r15), %rax
	movq	(%rax,%rbx), %rdi
	callq	_kfree
LBB0_6:
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.7:
	incq	%r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	-8(%rax,%rbx), %esi
	movl	(%r12), %ecx
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_ib_dma_unmap_single
	movq	(%r15), %rax
	movq	-16(%rax,%rbx), %rdi
	callq	_kfree
	decq	%r13
	addq	$-16, %rbx
	cmpq	$1, %r13
	ja	LBB0_8
LBB0_9:
	movq	(%r15), %rdi
	callq	_kfree
	movq	$0, (%r15)
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	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
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_alloc_proxy_bufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_proxy_bufs
_alloc_proxy_bufs:                      ; @alloc_proxy_bufs
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #8]
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #4
	bl	_kmalloc_array
	str	x0, [x19]
	cbz	x0, LBB0_12
; %bb.1:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x21, #0
	mov	x24, #0
Lloh2:
	adrp	x22, _DMA_FROM_DEVICE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DMA_FROM_DEVICE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	w0, #4
	bl	_kmalloc
	ldr	x8, [x19]
	str	x0, [x8, x21]
	cbz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x0
	ldr	w3, [x22]
	mov	x0, x20
	mov	w2, #4
	bl	_ib_dma_map_single
	mov	x1, x0
	ldr	x8, [x19]
	add	x8, x8, x21
	str	w0, [x8, #8]
	mov	x0, x20
	bl	_ib_dma_mapping_error
	cbnz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19, #8]
	add	x21, x21, #16
	cmp	x24, x8
	b.lt	LBB0_3
LBB0_6:
	mov	w0, #0
	b	LBB0_13
LBB0_7:
	ldr	x8, [x19]
	ldr	x0, [x8, x21]
	bl	_kfree
LBB0_8:
	cbz	w24, LBB0_11
; %bb.9:
	add	x23, x24, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x8, x8, x21
	ldur	w1, [x8, #-8]
	ldr	w3, [x22]
	mov	x0, x20
	mov	w2, #4
	bl	_ib_dma_unmap_single
	ldr	x8, [x19]
	add	x8, x8, x21
	ldur	x0, [x8, #-16]
	bl	_kfree
	sub	x23, x23, #1
	sub	x21, x21, #16
	cmp	x23, #1
	b.hi	LBB0_10
LBB0_11:
	ldr	x0, [x19]
	bl	_kfree
	str	xzr, [x19]
LBB0_12:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_alloc_proxy_bufs
.subsections_via_symbols
