	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_pwrsrc_die_with_vmain
_tg3_pwrsrc_die_with_vmain:             ## @tg3_pwrsrc_die_with_vmain
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_IS_NIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tg3_flag
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_tg3_asic_rev
	movq	_ASIC_REV_5700@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_tg3_asic_rev
	movq	_ASIC_REV_5701@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_GRC_LCLCTRL_GPIO_OE1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	orl	(%rbx), %r14d
	movq	_GRC_LOCAL_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_GRC_LCLCTRL_GPIO_OUTPUT1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	orl	%r14d, %esi
	movq	_TG3_GRC_LCLCTL_PWRSW_DELAY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_tw32_wait_f
	movl	(%r12), %edi
	movl	(%rbx), %edx
	movl	%r14d, %esi
	callq	_tw32_wait_f
	movl	(%r12), %edi
	orl	(%r15), %r14d
	movl	(%rbx), %edx
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tw32_wait_f                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IS_NIC,4,2                     ## @IS_NIC
	.comm	_ASIC_REV_5700,8,3              ## @ASIC_REV_5700
	.comm	_ASIC_REV_5701,8,3              ## @ASIC_REV_5701
	.comm	_GRC_LCLCTRL_GPIO_OE1,4,2       ## @GRC_LCLCTRL_GPIO_OE1
	.comm	_GRC_LOCAL_CTRL,4,2             ## @GRC_LOCAL_CTRL
	.comm	_GRC_LCLCTRL_GPIO_OUTPUT1,4,2   ## @GRC_LCLCTRL_GPIO_OUTPUT1
	.comm	_TG3_GRC_LCLCTL_PWRSW_DELAY,4,2 ## @TG3_GRC_LCLCTL_PWRSW_DELAY
	.no_dead_strip	_tg3_pwrsrc_die_with_vmain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_pwrsrc_die_with_vmain
_tg3_pwrsrc_die_with_vmain:             ; @tg3_pwrsrc_die_with_vmain
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _IS_NIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IS_NIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_tg3_flag
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_tg3_asic_rev
Lloh3:
	adrp	x8, _ASIC_REV_5700@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASIC_REV_5700@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_tg3_asic_rev
Lloh6:
	adrp	x8, _ASIC_REV_5701@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ASIC_REV_5701@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _GRC_LCLCTRL_GPIO_OE1@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GRC_LCLCTRL_GPIO_OE1@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w19, w9, w8
Lloh12:
	adrp	x20, _GRC_LOCAL_CTRL@GOTPAGE
Lloh13:
	ldr	x20, [x20, _GRC_LOCAL_CTRL@GOTPAGEOFF]
Lloh14:
	adrp	x21, _GRC_LCLCTRL_GPIO_OUTPUT1@GOTPAGE
Lloh15:
	ldr	x21, [x21, _GRC_LCLCTRL_GPIO_OUTPUT1@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	w8, [x21]
	orr	w1, w8, w19
Lloh16:
	adrp	x22, _TG3_GRC_LCLCTL_PWRSW_DELAY@GOTPAGE
Lloh17:
	ldr	x22, [x22, _TG3_GRC_LCLCTL_PWRSW_DELAY@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_tw32_wait_f
	ldr	w0, [x20]
	ldr	w2, [x22]
	mov	x1, x19
	bl	_tw32_wait_f
	ldr	w0, [x20]
	ldr	w8, [x21]
	orr	w1, w8, w19
	ldr	w2, [x22]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_tw32_wait_f
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IS_NIC,4,2                     ; @IS_NIC
	.comm	_ASIC_REV_5700,8,3              ; @ASIC_REV_5700
	.comm	_ASIC_REV_5701,8,3              ; @ASIC_REV_5701
	.comm	_GRC_LCLCTRL_GPIO_OE1,4,2       ; @GRC_LCLCTRL_GPIO_OE1
	.comm	_GRC_LOCAL_CTRL,4,2             ; @GRC_LOCAL_CTRL
	.comm	_GRC_LCLCTRL_GPIO_OUTPUT1,4,2   ; @GRC_LCLCTRL_GPIO_OUTPUT1
	.comm	_TG3_GRC_LCLCTL_PWRSW_DELAY,4,2 ; @TG3_GRC_LCLCTL_PWRSW_DELAY
	.no_dead_strip	_tg3_pwrsrc_die_with_vmain
.subsections_via_symbols
