	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_set_phys_id
_bnxt_set_phys_id:                      ## @bnxt_set_phys_id
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	callq	_netdev_priv
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_BNXT_VF
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ETHTOOL_ID_ACTIVE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_6
## %bb.5:
	movl	$500, %edi                      ## imm = 0x1F4
	movq	_PORT_LED_CFG_REQ_LED0_STATE_BLINKALT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_ETHTOOL_ID_INACTIVE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_13
## %bb.7:
	xorl	%edi, %edi
	movq	_PORT_LED_CFG_REQ_LED1_STATE_DEFAULT@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %r12d
	callq	_cpu_to_le16
	movq	%rax, %r15
	movq	_HWRM_PORT_LED_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_hwrm_cmd_hdr_init
	movl	16(%r14), %edi
	callq	_cpu_to_le16
	movq	%rax, -64(%rbp)
	movl	(%r14), %eax
	movl	%eax, -80(%rbp)
	testl	%eax, %eax
	jle	LBB0_11
## %bb.9:
	leaq	-44(%rbp), %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	callq	_BNXT_LED_DFLT_ENABLES
	orl	%eax, -76(%rbp)
	movq	8(%r14), %rax
	movl	4(%rax,%r13,8), %ecx
	movl	%ecx, (%rbx)
	movl	%r12d, -4(%rbx)
	movq	%r15, -12(%rbx)
	movq	%r15, -20(%rbx)
	movl	(%rax,%r13,8), %eax
	movl	%eax, -28(%rbx)
	incq	%r13
	movslq	(%r14), %rax
	addq	$32, %rbx
	cmpq	%rax, %r13
	jl	LBB0_10
LBB0_11:
	movq	_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	movl	$32, %edx
	callq	_hwrm_send_message
	jmp	LBB0_12
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ETHTOOL_ID_ACTIVE,4,2          ## @ETHTOOL_ID_ACTIVE
	.comm	_PORT_LED_CFG_REQ_LED0_STATE_BLINKALT,4,2 ## @PORT_LED_CFG_REQ_LED0_STATE_BLINKALT
	.comm	_ETHTOOL_ID_INACTIVE,4,2        ## @ETHTOOL_ID_INACTIVE
	.comm	_PORT_LED_CFG_REQ_LED1_STATE_DEFAULT,4,2 ## @PORT_LED_CFG_REQ_LED1_STATE_DEFAULT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HWRM_PORT_LED_CFG,4,2          ## @HWRM_PORT_LED_CFG
	.comm	_HWRM_CMD_TIMEOUT,4,2           ## @HWRM_CMD_TIMEOUT
	.no_dead_strip	_bnxt_set_phys_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_set_phys_id
_bnxt_set_phys_id:                      ; @bnxt_set_phys_id
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	bl	_netdev_priv
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x19, x0
	bl	_BNXT_VF
	cbz	x0, LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
Lloh2:
	adrp	x8, _ETHTOOL_ID_ACTIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ETHTOOL_ID_ACTIVE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #500
Lloh5:
	adrp	x8, _PORT_LED_CFG_REQ_LED0_STATE_BLINKALT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PORT_LED_CFG_REQ_LED0_STATE_BLINKALT@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh7:
	adrp	x8, _ETHTOOL_ID_INACTIVE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ETHTOOL_ID_INACTIVE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_13
; %bb.8:
	mov	w0, #0
Lloh10:
	adrp	x8, _PORT_LED_CFG_REQ_LED1_STATE_DEFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PORT_LED_CFG_REQ_LED1_STATE_DEFAULT@GOTPAGEOFF]
LBB0_9:
	ldr	w22, [x8]
	bl	_cpu_to_le16
	mov	x20, x0
Lloh12:
	adrp	x8, _HWRM_PORT_LED_CFG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HWRM_PORT_LED_CFG@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x23, sp
	mov	x1, sp
	mov	x0, x19
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_hwrm_cmd_hdr_init
	ldr	w0, [x19, #16]
	bl	_cpu_to_le16
	str	x0, [sp, #16]
	ldr	w8, [x19]
	str	w8, [sp]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x21, #0
	add	x23, x23, #24
	mov	w24, #4
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_BNXT_LED_DFLT_ENABLES
	ldr	w8, [sp, #4]
	orr	w8, w8, w0
	str	w8, [sp, #4]
	ldr	x8, [x19, #8]
	add	x8, x8, x24
	ldr	w9, [x8]
	stp	w22, w9, [x23, #8]
	stp	x20, x20, [x23, #-8]
	ldur	w8, [x8, #-4]
	stur	w8, [x23, #-16]
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x24, x24, #8
	add	x23, x23, #32
	cmp	x21, x8
	b.lt	LBB0_11
LBB0_12:
Lloh15:
	adrp	x8, _HWRM_CMD_TIMEOUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HWRM_CMD_TIMEOUT@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #32
	bl	_hwrm_send_message
	b	LBB0_4
LBB0_13:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ETHTOOL_ID_ACTIVE,4,2          ; @ETHTOOL_ID_ACTIVE
	.comm	_PORT_LED_CFG_REQ_LED0_STATE_BLINKALT,4,2 ; @PORT_LED_CFG_REQ_LED0_STATE_BLINKALT
	.comm	_ETHTOOL_ID_INACTIVE,4,2        ; @ETHTOOL_ID_INACTIVE
	.comm	_PORT_LED_CFG_REQ_LED1_STATE_DEFAULT,4,2 ; @PORT_LED_CFG_REQ_LED1_STATE_DEFAULT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HWRM_PORT_LED_CFG,4,2          ; @HWRM_PORT_LED_CFG
	.comm	_HWRM_CMD_TIMEOUT,4,2           ; @HWRM_CMD_TIMEOUT
	.no_dead_strip	_bnxt_set_phys_id
.subsections_via_symbols
