	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_hwrm_port_led_qcaps
_bnxt_hwrm_port_led_qcaps:              ## @bnxt_hwrm_port_led_qcaps
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %r15
	movq	$0, -40(%rbp)
	movq	$0, (%rdi)
	callq	_BNXT_VF
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	cmpl	$67073, 8(%rbx)                 ## imm = 0x10601
	jl	LBB0_13
## %bb.2:
	movq	_HWRM_PORT_LED_QCAPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_hwrm_cmd_hdr_init
	movl	24(%rbx), %edi
	callq	_cpu_to_le16
	movl	%eax, -40(%rbp)
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$8, %edx
	callq	__hwrm_send_message
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_3
LBB0_12:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_13:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%r15), %rdx
	xorl	%r12d, %r12d
	testq	%rdx, %rdx
	jle	LBB0_12
## %bb.4:
	movq	_BNXT_MAX_LED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jge	LBB0_12
## %bb.5:
	movq	%rdx, (%rbx)
	movq	16(%rbx), %rdi
	addq	$8, %r15
	shll	$3, %edx
	movq	%r15, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	cmpq	$0, (%rbx)
	jle	LBB0_12
## %bb.6:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	cmpl	$0, (%rax,%r15,8)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	4(%rax,%r15,8), %edi
	callq	_BNXT_LED_ALT_BLINK_CAP
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%r15
	cmpq	%r15, (%rbx)
	jg	LBB0_8
	jmp	LBB0_11
LBB0_10:
	movq	$0, (%rbx)
LBB0_11:
	xorl	%r12d, %r12d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_HWRM_PORT_LED_QCAPS,4,2        ## @HWRM_PORT_LED_QCAPS
	.comm	_HWRM_CMD_TIMEOUT,4,2           ## @HWRM_CMD_TIMEOUT
	.comm	_BNXT_MAX_LED,8,3               ## @BNXT_MAX_LED
	.no_dead_strip	_bnxt_hwrm_port_led_qcaps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_hwrm_port_led_qcaps
_bnxt_hwrm_port_led_qcaps:              ; @bnxt_hwrm_port_led_qcaps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x22, [x0, #32]
	str	xzr, [sp, #8]
	str	xzr, [x0]
	bl	_BNXT_VF
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19, #8]
	mov	w9, #1537
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.ge	LBB0_4
LBB0_2:
	mov	w21, #0
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
Lloh0:
	adrp	x8, _HWRM_PORT_LED_QCAPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HWRM_PORT_LED_QCAPS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x19
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_hwrm_cmd_hdr_init
	ldr	w0, [x19, #24]
	bl	_cpu_to_le16
	str	w0, [sp, #8]
	add	x20, x19, #12
	mov	x0, x20
	bl	_mutex_lock
Lloh3:
	adrp	x8, _HWRM_CMD_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HWRM_CMD_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #8
	bl	__hwrm_send_message
	mov	x21, x0
	cbnz	w0, LBB0_13
; %bb.5:
	ldr	x8, [x22]
Lloh6:
	adrp	x9, _BNXT_MAX_LED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BNXT_MAX_LED@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, #1
	ccmp	x8, x9, #0, ge
	b.ge	LBB0_11
; %bb.6:
	str	x8, [x19]
	ldr	x0, [x19, #16]
	add	x1, x22, #8
	lsl	w2, w8, #3
	bl	_memcpy
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.7:
	mov	x21, #0
	mov	x22, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	w9, [x8, x21]
	cbz	w9, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x8, x21
	ldr	w0, [x8, #4]
	bl	_BNXT_LED_ALT_BLINK_CAP
	cbz	w0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	ldr	x8, [x19]
	add	x21, x21, #8
	cmp	x8, x22
	b.gt	LBB0_8
LBB0_11:
	mov	w21, #0
	b	LBB0_13
LBB0_12:
	mov	w21, #0
	str	xzr, [x19]
LBB0_13:
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HWRM_PORT_LED_QCAPS,4,2        ; @HWRM_PORT_LED_QCAPS
	.comm	_HWRM_CMD_TIMEOUT,4,2           ; @HWRM_CMD_TIMEOUT
	.comm	_BNXT_MAX_LED,8,3               ; @BNXT_MAX_LED
	.no_dead_strip	_bnxt_hwrm_port_led_qcaps
.subsections_via_symbols
