	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_init_thermal_sensor_thresh_generic ## -- Begin function ixgbe_init_thermal_sensor_thresh_generic
	.p2align	4, 0x90
_ixgbe_init_thermal_sensor_thresh_generic: ## @ixgbe_init_thermal_sensor_thresh_generic
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_IXGBE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_IXGBE_READ_REG
	movq	_IXGBE_STATUS_LAN_ID_1@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_IXGBE_NOT_IMPLEMENTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_11
LBB0_2:
	leaq	-88(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_ixgbe_get_ets_data
	testq	%rax, %rax
	jne	LBB0_11
## %bb.3:
	movq	-88(%rbp), %rdx
	movq	_IXGBE_ETS_LTHRES_DELTA_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	andq	%rdx, %rsi
	movq	_IXGBE_ETS_LTHRES_DELTA_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	_IXGBE_ETS_NUM_SENSORS_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %rdx
	movq	_IXGBE_MAX_SENSORS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	cmovaeq	%rax, %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.4:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	negq	%rdx
	movl	$16, %r14d
	movl	$1, %r15d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdx
	addq	%r15, %rdx
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_hw_err
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$24, %r14
	leaq	(%rdx,%r15), %rax
	incq	%rax
	incq	%r15
	cmpq	$1, %rax
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rsi
	addq	%r15, %rsi
	movq	%rbx, %rdi
	leaq	-80(%rbp), %rdx
	callq	*8(%rbx)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-80(%rbp), %r13
	movq	_IXGBE_ETS_DATA_INDEX_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	%r13, %rax
	movq	_IXGBE_ETS_DATA_INDEX_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shrq	%cl, %rax
	movq	_IXGBE_ETS_DATA_LOC_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	andq	%r13, %r12
	movq	_IXGBE_ETS_DATA_LOC_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shrq	%cl, %r12
	movq	_IXGBE_ETS_DATA_HTHRESH_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %r13
	movq	_ixgbe_emc_therm_limit@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %esi
	movq	_IXGBE_I2C_THERMAL_SENSOR_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r13, %rcx
	callq	*(%rbx)
	testq	%r12, %r12
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%r12, -16(%rax,%r14)
	movq	%r13, -8(%rax,%r14)
	subq	-72(%rbp), %r13                 ## 8-byte Folded Reload
	movq	%r13, (%rax,%r14)
	jmp	LBB0_9
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_STATUS,4,2               ## @IXGBE_STATUS
	.comm	_IXGBE_STATUS_LAN_ID_1,4,2      ## @IXGBE_STATUS_LAN_ID_1
	.comm	_IXGBE_NOT_IMPLEMENTED,8,3      ## @IXGBE_NOT_IMPLEMENTED
	.comm	_IXGBE_ETS_LTHRES_DELTA_MASK,8,3 ## @IXGBE_ETS_LTHRES_DELTA_MASK
	.comm	_IXGBE_ETS_LTHRES_DELTA_SHIFT,8,3 ## @IXGBE_ETS_LTHRES_DELTA_SHIFT
	.comm	_IXGBE_ETS_NUM_SENSORS_MASK,8,3 ## @IXGBE_ETS_NUM_SENSORS_MASK
	.comm	_IXGBE_MAX_SENSORS,8,3          ## @IXGBE_MAX_SENSORS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"eeprom read at offset %d failed\n"

	.comm	_IXGBE_ETS_DATA_INDEX_MASK,8,3  ## @IXGBE_ETS_DATA_INDEX_MASK
	.comm	_IXGBE_ETS_DATA_INDEX_SHIFT,8,3 ## @IXGBE_ETS_DATA_INDEX_SHIFT
	.comm	_IXGBE_ETS_DATA_LOC_MASK,8,3    ## @IXGBE_ETS_DATA_LOC_MASK
	.comm	_IXGBE_ETS_DATA_LOC_SHIFT,8,3   ## @IXGBE_ETS_DATA_LOC_SHIFT
	.comm	_IXGBE_ETS_DATA_HTHRESH_MASK,8,3 ## @IXGBE_ETS_DATA_HTHRESH_MASK
	.comm	_ixgbe_emc_therm_limit,8,3      ## @ixgbe_emc_therm_limit
	.comm	_IXGBE_I2C_THERMAL_SENSOR_ADDR,4,2 ## @IXGBE_I2C_THERMAL_SENSOR_ADDR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_init_thermal_sensor_thresh_generic ; -- Begin function ixgbe_init_thermal_sensor_thresh_generic
	.p2align	2
_ixgbe_init_thermal_sensor_thresh_generic: ; @ixgbe_init_thermal_sensor_thresh_generic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
	add	x20, x0, #16
	mov	x0, x20
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh0:
	adrp	x8, _IXGBE_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IXGBE_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IXGBE_READ_REG
Lloh3:
	adrp	x8, _IXGBE_STATUS_LAN_ID_1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IXGBE_STATUS_LAN_ID_1@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _IXGBE_NOT_IMPLEMENTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IXGBE_NOT_IMPLEMENTED@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	b	LBB0_11
LBB0_2:
	add	x1, sp, #16
	add	x2, sp, #24
	mov	x0, x19
	bl	_ixgbe_get_ets_data
	cbnz	x0, LBB0_11
; %bb.3:
	ldr	x8, [sp, #16]
Lloh9:
	adrp	x9, _IXGBE_ETS_NUM_SENSORS_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IXGBE_ETS_NUM_SENSORS_MASK@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	and	x9, x9, x8
Lloh12:
	adrp	x10, _IXGBE_MAX_SENSORS@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IXGBE_MAX_SENSORS@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x9, x10
	csel	x9, x9, x10, lo
	cbz	x9, LBB0_10
; %bb.4:
	mov	x23, #0
Lloh15:
	adrp	x10, _IXGBE_ETS_LTHRES_DELTA_MASK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _IXGBE_ETS_LTHRES_DELTA_MASK@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	and	x8, x10, x8
Lloh18:
	adrp	x10, _IXGBE_ETS_LTHRES_DELTA_SHIFT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _IXGBE_ETS_LTHRES_DELTA_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	lsr	x24, x8, x10
	neg	x25, x9
	mov	w26, #1
Lloh21:
	adrp	x27, _IXGBE_I2C_THERMAL_SENSOR_ADDR@GOTPAGE
Lloh22:
	ldr	x27, [x27, _IXGBE_I2C_THERMAL_SENSOR_ADDR@GOTPAGEOFF]
Lloh23:
	adrp	x21, l_.str@PAGE
Lloh24:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #24]
	add	x2, x26, x8
	mov	x0, x19
	mov	x1, x21
	bl	_hw_err
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #24
	add	x26, x26, #1
	add	x8, x25, x26
	cmp	x8, #1
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [sp, #24]
	add	x1, x26, x9
	add	x2, sp, #8
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #8]
Lloh25:
	adrp	x9, _IXGBE_ETS_DATA_INDEX_MASK@GOTPAGE
Lloh26:
	ldr	x9, [x9, _IXGBE_ETS_DATA_INDEX_MASK@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	and	x9, x9, x8
Lloh28:
	adrp	x10, _IXGBE_ETS_DATA_INDEX_SHIFT@GOTPAGE
Lloh29:
	ldr	x10, [x10, _IXGBE_ETS_DATA_INDEX_SHIFT@GOTPAGEOFF]
Lloh30:
	ldr	x10, [x10]
	lsr	x9, x9, x10
Lloh31:
	adrp	x10, _IXGBE_ETS_DATA_LOC_MASK@GOTPAGE
Lloh32:
	ldr	x10, [x10, _IXGBE_ETS_DATA_LOC_MASK@GOTPAGEOFF]
Lloh33:
	ldr	x10, [x10]
	and	x10, x10, x8
Lloh34:
	adrp	x11, _IXGBE_ETS_DATA_LOC_SHIFT@GOTPAGE
Lloh35:
	ldr	x11, [x11, _IXGBE_ETS_DATA_LOC_SHIFT@GOTPAGEOFF]
Lloh36:
	ldr	x11, [x11]
	lsr	x28, x10, x11
Lloh37:
	adrp	x10, _IXGBE_ETS_DATA_HTHRESH_MASK@GOTPAGE
Lloh38:
	ldr	x10, [x10, _IXGBE_ETS_DATA_HTHRESH_MASK@GOTPAGEOFF]
Lloh39:
	ldr	x10, [x10]
	and	x22, x10, x8
	ldr	x8, [x19]
Lloh40:
	adrp	x10, _ixgbe_emc_therm_limit@GOTPAGE
Lloh41:
	ldr	x10, [x10, _ixgbe_emc_therm_limit@GOTPAGEOFF]
Lloh42:
	ldr	x10, [x10]
	ldr	w1, [x10, x9, lsl #2]
	ldr	w2, [x27]
	mov	x0, x19
	mov	x3, x22
	blr	x8
	cbz	x28, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20]
	add	x8, x8, x23
	stp	x28, x22, [x8]
	sub	x9, x22, x24
	str	x9, [x8, #16]
	b	LBB0_6
LBB0_10:
	mov	x0, #0
LBB0_11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_STATUS,4,2               ; @IXGBE_STATUS
	.comm	_IXGBE_STATUS_LAN_ID_1,4,2      ; @IXGBE_STATUS_LAN_ID_1
	.comm	_IXGBE_NOT_IMPLEMENTED,8,3      ; @IXGBE_NOT_IMPLEMENTED
	.comm	_IXGBE_ETS_LTHRES_DELTA_MASK,8,3 ; @IXGBE_ETS_LTHRES_DELTA_MASK
	.comm	_IXGBE_ETS_LTHRES_DELTA_SHIFT,8,3 ; @IXGBE_ETS_LTHRES_DELTA_SHIFT
	.comm	_IXGBE_ETS_NUM_SENSORS_MASK,8,3 ; @IXGBE_ETS_NUM_SENSORS_MASK
	.comm	_IXGBE_MAX_SENSORS,8,3          ; @IXGBE_MAX_SENSORS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"eeprom read at offset %d failed\n"

	.comm	_IXGBE_ETS_DATA_INDEX_MASK,8,3  ; @IXGBE_ETS_DATA_INDEX_MASK
	.comm	_IXGBE_ETS_DATA_INDEX_SHIFT,8,3 ; @IXGBE_ETS_DATA_INDEX_SHIFT
	.comm	_IXGBE_ETS_DATA_LOC_MASK,8,3    ; @IXGBE_ETS_DATA_LOC_MASK
	.comm	_IXGBE_ETS_DATA_LOC_SHIFT,8,3   ; @IXGBE_ETS_DATA_LOC_SHIFT
	.comm	_IXGBE_ETS_DATA_HTHRESH_MASK,8,3 ; @IXGBE_ETS_DATA_HTHRESH_MASK
	.comm	_ixgbe_emc_therm_limit,8,3      ; @ixgbe_emc_therm_limit
	.comm	_IXGBE_I2C_THERMAL_SENSOR_ADDR,4,2 ; @IXGBE_I2C_THERMAL_SENSOR_ADDR
.subsections_via_symbols
