	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xen_net_read_rate
_xen_net_read_rate:                     ## @xen_net_read_rate
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	$-1, (%rsi)
	movq	$0, (%rdx)
	movq	_XBT_NIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rdi), %esi
	leaq	L_.str(%rip), %rdx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_xenbus_read
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_simple_strtoul
	movq	-48(%rbp), %r13
	cmpq	%r13, %rbx
	je	LBB0_6
## %bb.2:
	cmpb	$44, (%r13)
	jne	LBB0_6
## %bb.3:
	movq	%rax, %r12
	incq	%r13
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	movl	$10, %edx
	callq	_simple_strtoul
	movq	-48(%rbp), %rcx
	cmpq	%rcx, %r13
	je	LBB0_6
## %bb.4:
	cmpb	$0, (%rcx)
	je	LBB0_5
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_warn
LBB0_7:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r12, (%r15)
	movq	%rax, (%r14)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_XBT_NIL,4,2                    ## @XBT_NIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rate"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to parse network rate limit. Traffic unlimited.\n"

	.no_dead_strip	_xen_net_read_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xen_net_read_rate
_xen_net_read_rate:                     ; @xen_net_read_rate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x8, #-1
	str	x8, [x1]
	str	xzr, [x2]
Lloh0:
	adrp	x8, _XBT_NIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XBT_NIL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w1, [x0]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x8
	mov	x3, #0
	bl	_xenbus_read
	mov	x21, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_7
; %bb.1:
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #10
	bl	_simple_strtoul
	ldr	x8, [sp, #8]
	cmp	x21, x8
	b.eq	LBB0_5
; %bb.2:
	ldrb	w9, [x8]
	cmp	w9, #44
	b.ne	LBB0_5
; %bb.3:
	mov	x22, x0
	add	x23, x8, #1
	add	x1, sp, #8
	mov	x0, x23
	mov	w2, #10
	bl	_simple_strtoul
	ldr	x8, [sp, #8]
	cmp	x23, x8
	b.eq	LBB0_5
; %bb.4:
	ldrb	w8, [x8]
	cbz	w8, LBB0_8
LBB0_5:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
LBB0_6:
	mov	x0, x21
	bl	_kfree
LBB0_7:
	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
	add	sp, sp, #80
	ret
LBB0_8:
	str	x22, [x20]
	str	x0, [x19]
	b	LBB0_6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_XBT_NIL,4,2                    ; @XBT_NIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rate"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to parse network rate limit. Traffic unlimited.\n"

	.no_dead_strip	_xen_net_read_rate
.subsections_via_symbols
