	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_alloc_skb                ## -- Begin function ipath_alloc_skb
	.p2align	4, 0x90
_ipath_alloc_skb:                       ## @ipath_alloc_skb
	.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
	movq	%rdi, %r15
	movq	_IPATH_4BYTE_TID@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	andl	4(%rdi), %eax
	movl	$4, %eax
	movl	$2051, %ebx                     ## imm = 0x803
	cmovel	%eax, %ebx
	addl	(%rdi), %ebx
	movl	%ebx, %edi
	callq	___dev_alloc_skb
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_skb_reserve
	movl	(%r12), %eax
	testl	%eax, 4(%r15)
	je	LBB0_5
## %bb.3:
	movl	$2047, %eax                     ## imm = 0x7FF
	andl	(%r14), %eax
	je	LBB0_5
## %bb.4:
	movl	$2048, %esi                     ## imm = 0x800
	subl	%eax, %esi
	movq	%r14, %rdi
	callq	_skb_reserve
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_ipath_dev_err
LBB0_5:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPATH_4BYTE_TID,4,2            ## @IPATH_4BYTE_TID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate skbuff, length %u\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_alloc_skb                ; -- Begin function ipath_alloc_skb
	.p2align	2
_ipath_alloc_skb:                       ; @ipath_alloc_skb
	.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	x20, x0
	ldp	w8, w9, [x0]
Lloh0:
	adrp	x22, _IPATH_4BYTE_TID@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IPATH_4BYTE_TID@GOTPAGEOFF]
	ldr	w10, [x22]
	tst	w10, w9
	mov	w9, #2051
	mov	w10, #4
	csel	w9, w10, w9, eq
	add	w21, w9, w8
	mov	x0, x21
	bl	___dev_alloc_skb
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	mov	w1, #4
	bl	_skb_reserve
	ldr	w8, [x20, #4]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	ldr	w8, [x19]
	ands	w8, w8, #0x7ff
	b.eq	LBB0_5
; %bb.3:
	mov	w9, #2048
	sub	w1, w9, w8
	mov	x0, x19
	bl	_skb_reserve
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_ipath_dev_err
LBB0_5:
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_IPATH_4BYTE_TID,4,2            ; @IPATH_4BYTE_TID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate skbuff, length %u\n"

.subsections_via_symbols
