	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_commit_partition_bw_setting ## -- Begin function i40e_commit_partition_bw_setting
	.p2align	4, 0x90
_i40e_commit_partition_bw_setting:      ## @i40e_commit_partition_bw_setting
	.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	%rdi, %rbx
	movl	(%rdi), %edx
	cmpl	$1, %edx
	jne	LBB0_1
## %bb.2:
	movq	_I40E_RESOURCE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i40e_acquire_nvm
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r14
	movl	4(%rbx), %r15d
	movq	8(%rbx), %r12
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_i40e_stat_str
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_i40e_aq_str
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_11
LBB0_1:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
	movq	_I40E_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_12
LBB0_4:
	movq	_I40E_SR_NVM_CONTROL_WORD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	subq	$8, %rsp
	leaq	-44(%rbp), %r8
	movq	%rbx, %rdi
	movl	$16, %edx
	movl	$4, %ecx
	xorl	%r9d, %r9d
	pushq	$0
	callq	_i40e_aq_read_nvm
	addq	$16, %rsp
	movq	%rax, %r14
	movl	4(%rbx), %r15d
	movq	%rbx, %rdi
	callq	_i40e_release_nvm
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movq	8(%rbx), %r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_i40e_stat_str
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_i40e_aq_str
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_11
LBB0_6:
	movl	$50, %edi
	callq	_msleep
	movq	_I40E_RESOURCE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i40e_acquire_nvm
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %r14
	movl	4(%rbx), %r15d
	movq	8(%rbx), %r12
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_i40e_stat_str
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_i40e_aq_str
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_11
LBB0_8:
	movl	(%r12), %esi
	leaq	-44(%rbp), %r8
	movq	%rbx, %rdi
	movl	$16, %edx
	movl	$4, %ecx
	movl	$1, %r9d
	pushq	$0
	pushq	$0
	callq	_i40e_aq_update_nvm
	addq	$16, %rsp
	movq	%rax, %r14
	movl	4(%rbx), %r15d
	movq	%rbx, %rdi
	callq	_i40e_release_nvm
	testq	%r14, %r14
	je	LBB0_9
## %bb.10:
	movq	8(%rbx), %r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_i40e_stat_str
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_i40e_aq_str
	leaq	L_.str.4(%rip), %rsi
LBB0_11:
	movq	%r12, %rdi
	movl	%r13d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_info
LBB0_12:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%r14d, %r14d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Commit BW only works on partition 1! This is partition %d"

	.comm	_I40E_NOT_SUPPORTED,8,3         ## @I40E_NOT_SUPPORTED
	.comm	_I40E_RESOURCE_READ,4,2         ## @I40E_RESOURCE_READ
L_.str.1:                               ## @.str.1
	.asciz	"Cannot acquire NVM for read access, err %s aq_err %s\n"

	.comm	_I40E_SR_NVM_CONTROL_WORD,4,2   ## @I40E_SR_NVM_CONTROL_WORD
L_.str.2:                               ## @.str.2
	.asciz	"NVM read error, err %s aq_err %s\n"

	.comm	_I40E_RESOURCE_WRITE,4,2        ## @I40E_RESOURCE_WRITE
L_.str.3:                               ## @.str.3
	.asciz	"Cannot acquire NVM for write access, err %s aq_err %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"BW settings NOT SAVED, err %s aq_err %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_commit_partition_bw_setting ; -- Begin function i40e_commit_partition_bw_setting
	.p2align	2
_i40e_commit_partition_bw_setting:      ; @i40e_commit_partition_bw_setting
	.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	x20, x0
	ldr	w2, [x0]
	cmp	w2, #1
	b.ne	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _I40E_RESOURCE_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40E_RESOURCE_READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i40e_acquire_nvm
	cbz	x0, LBB0_4
; %bb.2:
	mov	x19, x0
	ldr	w21, [x20, #4]
	ldr	x22, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_i40e_stat_str
	mov	x23, x0
	mov	x0, x20
	mov	x1, x21
	bl	_i40e_aq_str
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_3:
	ldr	x0, [x20, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
Lloh7:
	adrp	x8, _I40E_NOT_SUPPORTED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I40E_NOT_SUPPORTED@GOTPAGEOFF]
Lloh9:
	ldr	x19, [x8]
	b	LBB0_11
LBB0_4:
Lloh10:
	adrp	x22, _I40E_SR_NVM_CONTROL_WORD@GOTPAGE
Lloh11:
	ldr	x22, [x22, _I40E_SR_NVM_CONTROL_WORD@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x4, sp, #12
	mov	x0, x20
	mov	w2, #16
	mov	w3, #4
	mov	w5, #0
	mov	x6, #0
	bl	_i40e_aq_read_nvm
	mov	x19, x0
	ldr	w21, [x20, #4]
	mov	x0, x20
	bl	_i40e_release_nvm
	cbz	x19, LBB0_6
; %bb.5:
	ldr	x22, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_i40e_stat_str
	mov	x23, x0
	mov	x0, x20
	mov	x1, x21
	bl	_i40e_aq_str
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_6:
	mov	w0, #50
	bl	_msleep
Lloh14:
	adrp	x8, _I40E_RESOURCE_WRITE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _I40E_RESOURCE_WRITE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i40e_acquire_nvm
	cbz	x0, LBB0_8
; %bb.7:
	mov	x19, x0
	ldr	w21, [x20, #4]
	ldr	x22, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_i40e_stat_str
	mov	x23, x0
	mov	x0, x20
	mov	x1, x21
	bl	_i40e_aq_str
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_8:
	ldr	w1, [x22]
	add	x4, sp, #12
	mov	x0, x20
	mov	w2, #16
	mov	w3, #4
	mov	w5, #1
	mov	w6, #0
	mov	x7, #0
	bl	_i40e_aq_update_nvm
	mov	x19, x0
	ldr	w21, [x20, #4]
	mov	x0, x20
	bl	_i40e_release_nvm
	cbz	x19, LBB0_11
; %bb.9:
	ldr	x22, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_i40e_stat_str
	mov	x23, x0
	mov	x0, x20
	mov	x1, x21
	bl	_i40e_aq_str
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_10:
	mov	x0, x22
	mov	x2, x23
	bl	_dev_info
LBB0_11:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Commit BW only works on partition 1! This is partition %d"

	.comm	_I40E_NOT_SUPPORTED,8,3         ; @I40E_NOT_SUPPORTED
	.comm	_I40E_RESOURCE_READ,4,2         ; @I40E_RESOURCE_READ
l_.str.1:                               ; @.str.1
	.asciz	"Cannot acquire NVM for read access, err %s aq_err %s\n"

	.comm	_I40E_SR_NVM_CONTROL_WORD,4,2   ; @I40E_SR_NVM_CONTROL_WORD
l_.str.2:                               ; @.str.2
	.asciz	"NVM read error, err %s aq_err %s\n"

	.comm	_I40E_RESOURCE_WRITE,4,2        ; @I40E_RESOURCE_WRITE
l_.str.3:                               ; @.str.3
	.asciz	"Cannot acquire NVM for write access, err %s aq_err %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"BW settings NOT SAVED, err %s aq_err %s\n"

.subsections_via_symbols
