	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_size_rbr
_niu_size_rbr:                          ## @niu_size_rbr
	.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
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	$15, %esi
	callq	_min
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movl	$1, %esi
	movl	%edx, (%rbx)
	movl	(%r15), %ecx
	subl	%eax, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	movl	%esi, 4(%rbx)
	movq	8(%rbx), %rax
	movabsq	$4398046511360, %rcx            ## imm = 0x40000000100
	movq	%rcx, (%rax)
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	movq	_ETH_DATA_LEN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jle	LBB0_4
## %bb.1:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	cmpl	$4096, (%rcx)                   ## imm = 0x1000
	jne	LBB0_3
## %bb.2:
	movl	$4096, 8(%rax)                  ## imm = 0x1000
	jmp	LBB0_5
LBB0_4:
	movl	$2048, 8(%rax)                  ## imm = 0x800
	jmp	LBB0_5
LBB0_3:
	movl	$8192, 8(%rax)                  ## imm = 0x2000
LBB0_5:
	movl	(%rbx), %ecx
	movl	%ecx, 12(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_ETH_DATA_LEN,8,3               ## @ETH_DATA_LEN
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_niu_size_rbr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function niu_size_rbr
lCPI0_0:
	.long	256                             ; 0x100
	.long	1024                            ; 0x400
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_niu_size_rbr:                          ; @niu_size_rbr
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #15
	bl	_min
	mov	w8, #1
	lsl	w9, w8, w0
	str	w9, [x19]
	ldr	w9, [x21]
	sub	w9, w9, w0
	lsl	w8, w8, w9
	str	w8, [x19, #4]
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8]
	ldr	x9, [x20]
	ldr	x9, [x9]
Lloh4:
	adrp	x10, _ETH_DATA_LEN@GOTPAGE
Lloh5:
	ldr	x10, [x10, _ETH_DATA_LEN@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	cmp	x9, x10
	b.le	LBB0_3
; %bb.1:
Lloh7:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w9, #1, lsl #12                 ; =4096
	b.eq	LBB0_4
; %bb.2:
	mov	w9, #8192
	b	LBB0_4
LBB0_3:
	mov	w9, #2048
LBB0_4:
	str	w9, [x8, #8]
	ldr	w9, [x19]
	str	w9, [x8, #12]
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_ETH_DATA_LEN,8,3               ; @ETH_DATA_LEN
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_niu_size_rbr
.subsections_via_symbols
