	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libipw_alloc_txb
_libipw_alloc_txb:                      ## @libipw_alloc_txb
	.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, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	movl	%edi, %ebx
	leal	16(,%rbx,8), %edi
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %esi
	callq	_kmalloc
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	%ebx, (%r15)
	movl	%r13d, 4(%r15)
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r12d
	addl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	xorl	%r14d, %r14d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	___dev_alloc_skb
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%r14,4)
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%r14,4), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_skb_reserve
	incq	%r14
	cmpq	%r14, %r12
	jne	LBB0_3
## %bb.6:
	movl	%r12d, %r14d
	jmp	LBB0_7
LBB0_4:
	decl	%r14d
LBB0_7:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_8:
	xorl	%edi, %edi
	cmpl	%ebx, %r14d
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	testl	%r14d, %r14d
	js	LBB0_12
## %bb.10:
	movl	%r14d, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_dev_kfree_skb_any
	addq	$-1, %rbx
	jb	LBB0_11
LBB0_12:
	movq	%r15, %rdi
	callq	_kfree
LBB0_13:
	xorl	%r15d, %r15d
LBB0_14:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_libipw_alloc_txb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libipw_alloc_txb
_libipw_alloc_txb:                      ; @libipw_alloc_txb
	.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, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	lsl	w8, w0, #3
	add	w0, w8, #16
	mov	x1, x3
	bl	_kmalloc
	mov	x19, x0
	cbz	x0, LBB0_12
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	stp	w20, w23, [x19]
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x25, #0
	mov	w24, w20
	add	w23, w22, w23
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x21
	bl	___dev_alloc_skb
	ldr	x8, [x19, #8]
	str	w0, [x8, x25, lsl #2]
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x25, lsl #2]
	mov	x1, x22
	bl	_skb_reserve
	add	x25, x25, #1
	cmp	x24, x25
	b.ne	LBB0_3
	b	LBB0_7
LBB0_5:
	mov	w24, #0
	b	LBB0_7
LBB0_6:
	sub	w24, w25, #1
LBB0_7:
	cmp	w24, w20
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_12
; %bb.8:
	tbnz	w24, #31, LBB0_11
; %bb.9:
	mov	w8, w24
	lsl	x20, x8, #2
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x20]
	bl	_dev_kfree_skb_any
	sub	x20, x20, #4
	cmn	x20, #4
	b.ne	LBB0_10
LBB0_11:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_12:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_libipw_alloc_txb
.subsections_via_symbols
