	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_mb_get_mgmnt_traffic_ctl
_ql_mb_get_mgmnt_traffic_ctl:           ## @ql_mb_get_mgmnt_traffic_ctl
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	$0, (%r15)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -48(%rbp)
	movq	_MB_CMD_GET_MGMNT_TFK_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-32(%rbp), %rcx
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ql_mailbox_command
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	-40(%rbp), %rax
	movq	(%rax), %rcx
	movq	_MB_CMD_STS_GOOD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_3
## %bb.2:
	movq	-32(%rbp), %rax
	movl	4(%rax), %eax
	movl	%eax, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_3:
	movq	_MB_CMD_STS_INVLD_CMD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_5
## %bb.4:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %r8
	movq	%r14, %rdi
	callq	_netif_printk
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_MB_CMD_STS_ERR@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.6:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	callq	_netif_err
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MB_CMD_GET_MGMNT_TFK_CTL,4,2   ## @MB_CMD_GET_MGMNT_TFK_CTL
	.comm	_MB_CMD_STS_GOOD,8,3            ## @MB_CMD_STS_GOOD
	.comm	_MB_CMD_STS_INVLD_CMD,8,3       ## @MB_CMD_STS_INVLD_CMD
	.comm	_drv,4,2                        ## @drv
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Command not supported by firmware version.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MB_CMD_STS_ERR,8,3             ## @MB_CMD_STS_ERR
L_.str.1:                               ## @.str.1
	.asciz	"Failed to get MPI traffic control.\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ql_mb_get_mgmnt_traffic_ctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_mb_get_mgmnt_traffic_ctl
_ql_mb_get_mgmnt_traffic_ctl:           ; @ql_mb_get_mgmnt_traffic_ctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	wzr, [x20]
	movi.2s	v0, #1
	str	d0, [sp, #8]
Lloh0:
	adrp	x8, _MB_CMD_GET_MGMNT_TFK_CTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MB_CMD_GET_MGMNT_TFK_CTL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [sp, #24]
	str	w8, [x9]
	add	x1, sp, #8
	mov	x0, x19
	bl	_ql_mailbox_command
	cbnz	w0, LBB0_9
; %bb.1:
	ldr	x8, [sp, #16]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _MB_CMD_STS_GOOD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MB_CMD_STS_GOOD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	ldr	x8, [sp, #24]
	ldr	w8, [x8, #4]
	str	w8, [x20]
	b	LBB0_9
LBB0_3:
Lloh6:
	adrp	x9, _MB_CMD_STS_INVLD_CMD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MB_CMD_STS_INVLD_CMD@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _drv@GOTPAGE
Lloh10:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldr	w3, [x19]
Lloh15:
	adrp	x4, l_.str@PAGE
Lloh16:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_printk
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh19:
	adrp	x9, _MB_CMD_STS_ERR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MB_CMD_STS_ERR@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
Lloh22:
	adrp	x8, _drv@GOTPAGE
Lloh23:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh25:
	adrp	x3, l_.str.1@PAGE
Lloh26:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netif_err
Lloh27:
	adrp	x8, _EIO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MB_CMD_GET_MGMNT_TFK_CTL,4,2   ; @MB_CMD_GET_MGMNT_TFK_CTL
	.comm	_MB_CMD_STS_GOOD,8,3            ; @MB_CMD_STS_GOOD
	.comm	_MB_CMD_STS_INVLD_CMD,8,3       ; @MB_CMD_STS_INVLD_CMD
	.comm	_drv,4,2                        ; @drv
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Command not supported by firmware version.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MB_CMD_STS_ERR,8,3             ; @MB_CMD_STS_ERR
l_.str.1:                               ; @.str.1
	.asciz	"Failed to get MPI traffic control.\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ql_mb_get_mgmnt_traffic_ctl
.subsections_via_symbols
