	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_phys_id
_bnx2_phys_id:                          ## @bnx2_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r13
	movq	_PCI_D0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_bnx2_set_power_state
	movq	_BNX2_MISC_CFG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_BNX2_RD
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %esi
	movq	_BNX2_MISC_CFG_LEDMODE_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_BNX2_WR
	leal	(%r12,%r12), %eax
	testl	%r12d, %r12d
	movl	$4, %ebx
	cmovnel	%eax, %ebx
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.1:
	decl	%ebx
	xorl	%r15d, %r15d
	movq	_BNX2_EMAC_LED_OVERRIDE@GOTPCREL(%rip), %r14
	movq	_current@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edx
	testb	$1, %r15b
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_BNX2_EMAC_LED_1000MB_OVERRIDE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_BNX2_EMAC_LED_100MB_OVERRIDE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_BNX2_EMAC_LED_10MB_OVERRIDE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_BNX2_EMAC_LED_TRAFFIC_OVERRIDE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_BNX2_EMAC_LED_TRAFFIC@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_BNX2_EMAC_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_BNX2_WR
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_msleep_interruptible
	movl	(%r12), %edi
	callq	_signal_pending
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%r15), %eax
	cmpl	%r15d, %ebx
	movl	%eax, %r15d
	jne	LBB0_2
LBB0_6:
	movq	_BNX2_EMAC_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_BNX2_WR
	movq	_BNX2_MISC_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_BNX2_WR
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_running
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	_PCI_D3hot@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_bnx2_set_power_state
LBB0_8:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_D0,4,2                     ## @PCI_D0
	.comm	_BNX2_MISC_CFG,4,2              ## @BNX2_MISC_CFG
	.comm	_BNX2_MISC_CFG_LEDMODE_MAC,4,2  ## @BNX2_MISC_CFG_LEDMODE_MAC
	.comm	_BNX2_EMAC_LED,4,2              ## @BNX2_EMAC_LED
	.comm	_BNX2_EMAC_LED_OVERRIDE,4,2     ## @BNX2_EMAC_LED_OVERRIDE
	.comm	_BNX2_EMAC_LED_1000MB_OVERRIDE,4,2 ## @BNX2_EMAC_LED_1000MB_OVERRIDE
	.comm	_BNX2_EMAC_LED_100MB_OVERRIDE,4,2 ## @BNX2_EMAC_LED_100MB_OVERRIDE
	.comm	_BNX2_EMAC_LED_10MB_OVERRIDE,4,2 ## @BNX2_EMAC_LED_10MB_OVERRIDE
	.comm	_BNX2_EMAC_LED_TRAFFIC_OVERRIDE,4,2 ## @BNX2_EMAC_LED_TRAFFIC_OVERRIDE
	.comm	_BNX2_EMAC_LED_TRAFFIC,4,2      ## @BNX2_EMAC_LED_TRAFFIC
	.comm	_current,4,2                    ## @current
	.comm	_PCI_D3hot,4,2                  ## @PCI_D3hot
	.no_dead_strip	_bnx2_phys_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_phys_id
_bnx2_phys_id:                          ; @bnx2_phys_id
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _PCI_D0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_D0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_bnx2_set_power_state
Lloh3:
	adrp	x20, _BNX2_MISC_CFG@GOTPAGE
Lloh4:
	ldr	x20, [x20, _BNX2_MISC_CFG@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_BNX2_RD
	str	w0, [sp, #4]                    ; 4-byte Folded Spill
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _BNX2_MISC_CFG_LEDMODE_MAC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BNX2_MISC_CFG_LEDMODE_MAC@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_BNX2_WR
	lsl	w8, w22, #1
	mov	w9, #4
	cmp	w22, #0
	csel	w8, w9, w8, eq
Lloh8:
	adrp	x22, _BNX2_EMAC_LED@GOTPAGE
Lloh9:
	ldr	x22, [x22, _BNX2_EMAC_LED@GOTPAGEOFF]
	subs	w24, w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w25, #0
Lloh10:
	adrp	x26, _BNX2_EMAC_LED_OVERRIDE@GOTPAGE
Lloh11:
	ldr	x26, [x26, _BNX2_EMAC_LED_OVERRIDE@GOTPAGEOFF]
Lloh12:
	adrp	x27, _current@GOTPAGE
Lloh13:
	ldr	x27, [x27, _current@GOTPAGEOFF]
Lloh14:
	adrp	x23, _BNX2_EMAC_LED_100MB_OVERRIDE@GOTPAGE
Lloh15:
	ldr	x23, [x23, _BNX2_EMAC_LED_100MB_OVERRIDE@GOTPAGEOFF]
Lloh16:
	adrp	x21, _BNX2_EMAC_LED_10MB_OVERRIDE@GOTPAGE
Lloh17:
	ldr	x21, [x21, _BNX2_EMAC_LED_10MB_OVERRIDE@GOTPAGEOFF]
Lloh18:
	adrp	x20, _BNX2_EMAC_LED_TRAFFIC_OVERRIDE@GOTPAGE
Lloh19:
	ldr	x20, [x20, _BNX2_EMAC_LED_TRAFFIC_OVERRIDE@GOTPAGEOFF]
Lloh20:
	adrp	x28, _BNX2_EMAC_LED_TRAFFIC@GOTPAGE
Lloh21:
	ldr	x28, [x28, _BNX2_EMAC_LED_TRAFFIC@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_BNX2_WR
	mov	w0, #500
	bl	_msleep_interruptible
	ldr	w0, [x27]
	bl	_signal_pending
	cmp	x0, #0
	ccmp	w24, w25, #4, eq
	add	w25, w25, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x26]
	tbz	w25, #0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh22:
	adrp	x8, _BNX2_EMAC_LED_1000MB_OVERRIDE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BNX2_EMAC_LED_1000MB_OVERRIDE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	orr	w8, w8, w2
	ldr	w9, [x23]
	orr	w8, w8, w9
	ldr	w9, [x21]
	orr	w8, w8, w9
	ldr	w9, [x20]
	orr	w8, w8, w9
	ldr	w9, [x28]
	orr	w2, w8, w9
	b	LBB0_2
LBB0_5:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_BNX2_WR
Lloh25:
	adrp	x8, _BNX2_MISC_CFG@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BNX2_MISC_CFG@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	ldr	w2, [sp, #4]                    ; 4-byte Folded Reload
	bl	_BNX2_WR
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_netif_running
	cbnz	w0, LBB0_7
; %bb.6:
Lloh28:
	adrp	x8, _PCI_D3hot@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PCI_D3hot@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bnx2_set_power_state
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_D0,4,2                     ; @PCI_D0
	.comm	_BNX2_MISC_CFG,4,2              ; @BNX2_MISC_CFG
	.comm	_BNX2_MISC_CFG_LEDMODE_MAC,4,2  ; @BNX2_MISC_CFG_LEDMODE_MAC
	.comm	_BNX2_EMAC_LED,4,2              ; @BNX2_EMAC_LED
	.comm	_BNX2_EMAC_LED_OVERRIDE,4,2     ; @BNX2_EMAC_LED_OVERRIDE
	.comm	_BNX2_EMAC_LED_1000MB_OVERRIDE,4,2 ; @BNX2_EMAC_LED_1000MB_OVERRIDE
	.comm	_BNX2_EMAC_LED_100MB_OVERRIDE,4,2 ; @BNX2_EMAC_LED_100MB_OVERRIDE
	.comm	_BNX2_EMAC_LED_10MB_OVERRIDE,4,2 ; @BNX2_EMAC_LED_10MB_OVERRIDE
	.comm	_BNX2_EMAC_LED_TRAFFIC_OVERRIDE,4,2 ; @BNX2_EMAC_LED_TRAFFIC_OVERRIDE
	.comm	_BNX2_EMAC_LED_TRAFFIC,4,2      ; @BNX2_EMAC_LED_TRAFFIC
	.comm	_current,4,2                    ; @current
	.comm	_PCI_D3hot,4,2                  ; @PCI_D3hot
	.no_dead_strip	_bnx2_phys_id
.subsections_via_symbols
