	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macb_init_rx_buffer_size
_macb_init_rx_buffer_size:              ## @macb_init_rx_buffer_size
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_macb_is_gem
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, (%r14)
	movq	_RX_BUFFER_MULTIPLE@GOTPCREL(%rip), %r15
	movslq	(%r15), %rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rcx
	testq	%rdx, %rdx
	jne	LBB0_6
	jmp	LBB0_8
LBB0_1:
	movq	_MACB_RX_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_7
LBB0_3:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	je	LBB0_8
LBB0_6:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ecx, %edx
	xorl	%eax, %eax
	callq	_netdev_dbg
	movl	(%r14), %edi
	movl	(%r15), %esi
	callq	_roundup
	movslq	%eax, %rbx
LBB0_7:
	movq	%rbx, (%r14)
LBB0_8:
	movq	8(%r14), %rdi
	movl	(%rdi), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_dbg                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MACB_RX_BUFFER_SIZE,8,3        ## @MACB_RX_BUFFER_SIZE
	.comm	_RX_BUFFER_MULTIPLE,4,2         ## @RX_BUFFER_MULTIPLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RX buffer must be multiple of %d bytes, expanding\n"

L_.str.1:                               ## @.str.1
	.asciz	"mtu [%u] rx_buffer_size [%zu]\n"

	.no_dead_strip	_macb_init_rx_buffer_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macb_init_rx_buffer_size
_macb_init_rx_buffer_size:              ; @macb_init_rx_buffer_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_macb_is_gem
	cbz	w0, LBB0_3
; %bb.1:
	str	x20, [x19]
Lloh0:
	adrp	x21, _RX_BUFFER_MULTIPLE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RX_BUFFER_MULTIPLE@GOTPAGEOFF]
	ldrsw	x2, [x21]
	udiv	x8, x20, x2
	msub	x8, x8, x2, x20
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_netdev_dbg
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_roundup
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x20, w0
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _MACB_RX_BUFFER_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MACB_RX_BUFFER_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	x20, [x8]
LBB0_4:
	str	x20, [x19]
LBB0_5:
	ldr	x0, [x19, #8]
	ldr	w2, [x0]
	str	x20, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_dbg
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MACB_RX_BUFFER_SIZE,8,3        ; @MACB_RX_BUFFER_SIZE
	.comm	_RX_BUFFER_MULTIPLE,4,2         ; @RX_BUFFER_MULTIPLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RX buffer must be multiple of %d bytes, expanding\n"

l_.str.1:                               ; @.str.1
	.asciz	"mtu [%u] rx_buffer_size [%zu]\n"

	.no_dead_strip	_macb_init_rx_buffer_size
.subsections_via_symbols
