	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ql_mb_set_led_cfg              ## -- Begin function ql_mb_set_led_cfg
	.p2align	4, 0x90
_ql_mb_set_led_cfg:                     ## @ql_mb_set_led_cfg
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movabsq	$4294967298, %rax               ## imm = 0x100000002
	movq	%rax, -48(%rbp)
	movq	_MB_CMD_SET_LED_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-32(%rbp), %rcx
	movl	%eax, (%rcx)
	movl	%ebx, 4(%rcx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ql_mailbox_command
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	-40(%rbp), %rax
	movq	(%rax), %rcx
	movq	_MB_CMD_STS_GOOD@GOTPCREL(%rip), %rdx
	movl	$0, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_3
## %bb.2:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_netif_err
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MB_CMD_SET_LED_CFG,4,2         ## @MB_CMD_SET_LED_CFG
	.comm	_MB_CMD_STS_GOOD,8,3            ## @MB_CMD_STS_GOOD
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set LED Configuration.\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ql_mb_set_led_cfg
lCPI0_0:
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ql_mb_set_led_cfg
	.p2align	2
_ql_mb_set_led_cfg:                     ; @ql_mb_set_led_cfg
	.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
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
Lloh2:
	adrp	x8, _MB_CMD_SET_LED_CFG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MB_CMD_SET_LED_CFG@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x9, [sp, #24]
	stp	w8, w20, [x9]
	add	x1, sp, #8
	mov	x0, x19
	bl	_ql_mailbox_command
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [sp, #16]
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _MB_CMD_STS_GOOD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MB_CMD_STS_GOOD@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _drv@GOTPAGE
Lloh9:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MB_CMD_SET_LED_CFG,4,2         ; @MB_CMD_SET_LED_CFG
	.comm	_MB_CMD_STS_GOOD,8,3            ; @MB_CMD_STS_GOOD
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set LED Configuration.\n"

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