	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp_SetDatalinkBandwidth        ## -- Begin function mp_SetDatalinkBandwidth
	.p2align	4, 0x90
_mp_SetDatalinkBandwidth:               ## @mp_SetDatalinkBandwidth
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movslq	4(%rdi), %rax
	leal	1(%rax), %ecx
	movl	$-1, %r14d
	cmpl	%ecx, (%rdi)
	jne	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movq	24(%rdi), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_atoi
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:
	movq	16(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movq	(%rcx), %rax
	movq	_DATALINK_OPEN@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	8(%rbx), %edi
	callq	_bundle_CalculateBandwidth
	jmp	LBB0_5
LBB0_2:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_log_Printf
	movl	$1, %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LogWARN,4,2                    ## @LogWARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The link bandwidth must be greater than zero\n"

	.comm	_DATALINK_OPEN,8,3              ## @DATALINK_OPEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp_SetDatalinkBandwidth        ; -- Begin function mp_SetDatalinkBandwidth
	.p2align	2
_mp_SetDatalinkBandwidth:               ; @mp_SetDatalinkBandwidth
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	w9, w8, [x0]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	w10, w8, #1
	cmp	w9, w10
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x9, [x0, #24]
	ldr	w0, [x9, x8, lsl #2]
	bl	_atoi
	cmp	w0, #0
	b.le	LBB0_6
; %bb.2:
	ldr	x8, [x19, #16]
	str	w0, [x8, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _DATALINK_OPEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DATALINK_OPEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19, #8]
	bl	_bundle_CalculateBandwidth
LBB0_4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	mov	w0, #-1
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _LogWARN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_Printf
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LogWARN,4,2                    ; @LogWARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The link bandwidth must be greater than zero\n"

	.comm	_DATALINK_OPEN,8,3              ; @DATALINK_OPEN
.subsections_via_symbols
