	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_set_function_status
_tg3_set_function_status:               ## @tg3_set_function_status
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_tg3_asic_rev
	movq	_ASIC_REV_5717@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_tg3_asic_rev
	movq	_ASIC_REV_5719@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movq	_TG3_APE_GPIO_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_tg3_ape_read32
	jmp	LBB0_4
LBB0_3:
	movq	_TG3_CPMU_DRV_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tr32
LBB0_4:
	movq	_TG3_APE_GPIO_MSG_SHIFT@GOTPCREL(%rip), %r12
	movl	(%r14), %ecx
	shll	$2, %ecx
	addl	(%r12), %ecx
	movq	_TG3_GPIO_MSG_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	shll	%cl, %edx
	notl	%edx
	andl	%eax, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	orl	%edx, %ebx
	movq	%r14, %rdi
	callq	_tg3_asic_rev
	cmpq	(%r15), %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_tg3_asic_rev
	movq	_ASIC_REV_5719@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_6:
	movq	_TG3_APE_GPIO_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_tg3_ape_write32
	jmp	LBB0_8
LBB0_7:
	movq	_TG3_CPMU_DRV_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_tw32
LBB0_8:
	movb	(%r12), %cl
	sarl	%cl, %ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASIC_REV_5717,8,3              ## @ASIC_REV_5717
	.comm	_ASIC_REV_5719,8,3              ## @ASIC_REV_5719
	.comm	_TG3_APE_GPIO_MSG,4,2           ## @TG3_APE_GPIO_MSG
	.comm	_TG3_CPMU_DRV_STATUS,4,2        ## @TG3_CPMU_DRV_STATUS
	.comm	_TG3_APE_GPIO_MSG_SHIFT,4,2     ## @TG3_APE_GPIO_MSG_SHIFT
	.comm	_TG3_GPIO_MSG_MASK,4,2          ## @TG3_GPIO_MSG_MASK
	.no_dead_strip	_tg3_set_function_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_set_function_status
_tg3_set_function_status:               ; @tg3_set_function_status
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_tg3_asic_rev
Lloh0:
	adrp	x23, _ASIC_REV_5717@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ASIC_REV_5717@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh2:
	adrp	x22, _ASIC_REV_5719@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ASIC_REV_5719@GOTPAGEOFF]
Lloh4:
	adrp	x21, _TG3_APE_GPIO_MSG@GOTPAGE
Lloh5:
	ldr	x21, [x21, _TG3_APE_GPIO_MSG@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_tg3_asic_rev
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_3
LBB0_2:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_tg3_ape_read32
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _TG3_CPMU_DRV_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TG3_CPMU_DRV_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_tr32
LBB0_4:
Lloh9:
	adrp	x24, _TG3_APE_GPIO_MSG_SHIFT@GOTPAGE
Lloh10:
	ldr	x24, [x24, _TG3_APE_GPIO_MSG_SHIFT@GOTPAGEOFF]
	ldr	w8, [x24]
	ldr	w9, [x19]
Lloh11:
	adrp	x10, _TG3_GPIO_MSG_MASK@GOTPAGE
Lloh12:
	ldr	x10, [x10, _TG3_GPIO_MSG_MASK@GOTPAGEOFF]
	add	w8, w8, w9, lsl #2
Lloh13:
	ldr	w9, [x10]
	lsl	w9, w9, w8
	bic	w9, w0, w9
	lsl	w8, w20, w8
	orr	w20, w9, w8
	mov	x0, x19
	bl	_tg3_asic_rev
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_tg3_asic_rev
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_7
LBB0_6:
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_tg3_ape_write32
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x8, _TG3_CPMU_DRV_STATUS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TG3_CPMU_DRV_STATUS@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_tw32
LBB0_8:
	ldr	w8, [x24]
	asr	w0, w20, w8
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ASIC_REV_5717,8,3              ; @ASIC_REV_5717
	.comm	_ASIC_REV_5719,8,3              ; @ASIC_REV_5719
	.comm	_TG3_APE_GPIO_MSG,4,2           ; @TG3_APE_GPIO_MSG
	.comm	_TG3_CPMU_DRV_STATUS,4,2        ; @TG3_CPMU_DRV_STATUS
	.comm	_TG3_APE_GPIO_MSG_SHIFT,4,2     ; @TG3_APE_GPIO_MSG_SHIFT
	.comm	_TG3_GPIO_MSG_MASK,4,2          ; @TG3_GPIO_MSG_MASK
	.no_dead_strip	_tg3_set_function_status
.subsections_via_symbols
