	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xen_register_credit_watch
_xen_register_credit_watch:             ## @xen_register_credit_watch
	.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	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	callq	_strlen
	cmpq	$0, (%r15)
	je	LBB0_3
## %bb.1:
	movq	_EADDRINUSE@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%eax, %ebx
	addl	$6, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	(%r12), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_snprintf
	movq	%r14, (%r15)
	movq	_xen_net_rate_changed@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	%r15, %rdi
	callq	_register_xenbus_watch
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %ebx
	movq	(%r15), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movq	%r14, %rdi
	callq	_kfree
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	jmp	LBB0_8
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EADDRINUSE,4,2                 ## @EADDRINUSE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/rate"

	.comm	_xen_net_rate_changed,8,3       ## @xen_net_rate_changed
L_.str.1:                               ## @.str.1
	.asciz	"Failed to set watcher %s\n"

	.no_dead_strip	_xen_register_credit_watch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xen_register_credit_watch
_xen_register_credit_watch:             ; @xen_register_credit_watch
	.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	x21, x0
	ldr	x0, [x0]
	bl	_strlen
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _EADDRINUSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EADDRINUSE@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_3:
	mov	x0, x21
	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
LBB0_4:
	add	w22, w0, #6
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_kmalloc
	cbz	x0, LBB0_7
; %bb.5:
	mov	x20, x0
	ldr	x3, [x21]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x22
	bl	_snprintf
	str	x20, [x19]
Lloh7:
	adrp	x8, _xen_net_rate_changed@GOTPAGE
Lloh8:
	ldr	x8, [x8, _xen_net_rate_changed@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_register_xenbus_watch
	mov	x21, x0
	cbz	w0, LBB0_3
; %bb.6:
	ldr	x1, [x19]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	mov	x0, x20
	bl	_kfree
	stp	xzr, xzr, [x19]
	b	LBB0_3
LBB0_7:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EADDRINUSE,4,2                 ; @EADDRINUSE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/rate"

	.comm	_xen_net_rate_changed,8,3       ; @xen_net_rate_changed
l_.str.1:                               ; @.str.1
	.asciz	"Failed to set watcher %s\n"

	.no_dead_strip	_xen_register_credit_watch
.subsections_via_symbols
