	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_rx_buffer_headroom
_update_rx_buffer_headroom:             ## @update_rx_buffer_headroom
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movl	4(%rdi), %edx
	movl	8(%rdi), %edi
	movq	_DPNI_QUEUE_RX@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	-64(%rbp), %r8
	xorl	%esi, %esi
	callq	_dpni_get_buffer_layout
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_2:
	movq	%r15, %rdi
	callq	_dpaa2_eth_rx_head_room
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	movq	_XDP_PACKET_HEADROOM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
LBB0_4:
	movslq	%r14d, %rcx
	addq	%rcx, %rax
	movq	%rax, -56(%rbp)
	movq	_DPNI_BUF_LAYOUT_OPT_DATA_HEAD_ROOM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	4(%r15), %edx
	movl	8(%r15), %edi
	movl	(%r12), %ecx
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %r8
	xorl	%esi, %esi
	callq	_dpni_set_buffer_layout
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %ebx
LBB0_6:
	movl	(%r15), %edi
	callq	_netdev_err
LBB0_7:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPNI_QUEUE_RX,4,2              ## @DPNI_QUEUE_RX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dpni_get_buffer_layout failed\n"

	.comm	_XDP_PACKET_HEADROOM,4,2        ## @XDP_PACKET_HEADROOM
	.comm	_DPNI_BUF_LAYOUT_OPT_DATA_HEAD_ROOM,4,2 ## @DPNI_BUF_LAYOUT_OPT_DATA_HEAD_ROOM
L_.str.1:                               ## @.str.1
	.asciz	"dpni_set_buffer_layout failed\n"

	.no_dead_strip	_update_rx_buffer_headroom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_rx_buffer_headroom
_update_rx_buffer_headroom:             ; @update_rx_buffer_headroom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x1
	mov	x19, x0
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	ldr	w0, [x0, #8]
	ldr	w2, [x19, #4]
Lloh0:
	adrp	x22, _DPNI_QUEUE_RX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DPNI_QUEUE_RX@GOTPAGEOFF]
	ldr	w3, [x22]
	add	x4, sp, #8
	mov	w1, #0
	bl	_dpni_get_buffer_layout
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_dpaa2_eth_rx_head_room
Lloh4:
	adrp	x8, _XDP_PACKET_HEADROOM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _XDP_PACKET_HEADROOM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w21, #0
	csel	w8, wzr, w8, eq
	add	x8, x0, w8, sxtw
Lloh7:
	adrp	x9, _DPNI_BUF_LAYOUT_OPT_DATA_HEAD_ROOM@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DPNI_BUF_LAYOUT_OPT_DATA_HEAD_ROOM@GOTPAGEOFF]
	str	x8, [sp, #16]
Lloh9:
	ldr	w8, [x9]
	str	w8, [sp, #8]
	ldp	w2, w0, [x19, #4]
	ldr	w3, [x22]
	add	x4, sp, #8
	mov	w1, #0
	bl	_dpni_set_buffer_layout
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.3:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	ldr	w0, [x19]
	bl	_netdev_err
LBB0_5:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DPNI_QUEUE_RX,4,2              ; @DPNI_QUEUE_RX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dpni_get_buffer_layout failed\n"

	.comm	_XDP_PACKET_HEADROOM,4,2        ; @XDP_PACKET_HEADROOM
	.comm	_DPNI_BUF_LAYOUT_OPT_DATA_HEAD_ROOM,4,2 ; @DPNI_BUF_LAYOUT_OPT_DATA_HEAD_ROOM
l_.str.1:                               ; @.str.1
	.asciz	"dpni_set_buffer_layout failed\n"

	.no_dead_strip	_update_rx_buffer_headroom
.subsections_via_symbols
