	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_init_thermal_sensor_thresh_generic ## -- Begin function igb_init_thermal_sensor_thresh_generic
	.p2align	4, 0x90
_igb_init_thermal_sensor_thresh_generic: ## @igb_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %rax
	movq	_e1000_i350@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %r13
	cmpq	$0, 16(%rdi)
	je	LBB0_3
LBB0_2:
	movq	_E1000_NOT_IMPLEMENTED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	32(%r13), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	32(%r13), %rax
	movl	$1, (%rax)
	movq	_E1000_THHIGHTC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rd32
	movzbl	%al, %eax
	movq	32(%r13), %rcx
	movl	%eax, 4(%rcx)
	movq	_E1000_THLOWTC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rd32
	movzbl	%al, %eax
	movq	32(%r13), %rcx
	movl	%eax, 8(%rcx)
	movq	_NVM_ETS_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	callq	*8(%r13)
	movl	-44(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_13
## %bb.4:
	cmpl	$65535, %esi                    ## imm = 0xFFFF
	je	LBB0_13
## %bb.5:
	leaq	-60(%rbp), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	callq	*8(%r13)
	movl	-60(%rbp), %edx
	movq	_NVM_ETS_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	movq	_NVM_ETS_TYPE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_NVM_ETS_TYPE_EMC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.6:
	movq	_NVM_ETS_LTHRES_DELTA_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%edx, %esi
	movq	_NVM_ETS_LTHRES_DELTA_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %esi
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	_NVM_ETS_NUM_SENSORS_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	jle	LBB0_13
## %bb.7:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	incq	%rdx
	movl	$1, %r15d
	movl	$20, %r12d
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r15
	addq	$12, %r12
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%r15, %rdx
	je	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %esi
	addl	%r15d, %esi
	movq	%r13, %rdi
	movl	$1, %edx
	leaq	-56(%rbp), %rcx
	callq	*8(%r13)
	movl	-56(%rbp), %ebx
	movq	_NVM_ETS_DATA_INDEX_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	movq	_NVM_ETS_DATA_INDEX_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarl	%cl, %eax
	movq	_NVM_ETS_DATA_LOC_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	andl	%ebx, %r14d
	movq	_NVM_ETS_DATA_LOC_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarl	%cl, %r14d
	movq	_NVM_ETS_DATA_HTHRESH_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movq	_e1000_emc_therm_limit@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movl	(%rcx,%rax,4), %esi
	movq	_E1000_I2C_THERMAL_SENSOR_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %ecx
	callq	*(%r13)
	movq	_E1000_MAX_SENSORS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r15
	jge	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	%r14d, -8(%rax,%r12)
	movl	%ebx, -4(%rax,%r12)
	subl	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%ebx, (%rax,%r12)
	jmp	LBB0_11
LBB0_12:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_SUCCESS,4,2              ## @E1000_SUCCESS
	.comm	_e1000_i350,8,3                 ## @e1000_i350
	.comm	_E1000_NOT_IMPLEMENTED,4,2      ## @E1000_NOT_IMPLEMENTED
	.comm	_E1000_THHIGHTC,4,2             ## @E1000_THHIGHTC
	.comm	_E1000_THLOWTC,4,2              ## @E1000_THLOWTC
	.comm	_NVM_ETS_CFG,4,2                ## @NVM_ETS_CFG
	.comm	_NVM_ETS_TYPE_MASK,4,2          ## @NVM_ETS_TYPE_MASK
	.comm	_NVM_ETS_TYPE_SHIFT,4,2         ## @NVM_ETS_TYPE_SHIFT
	.comm	_NVM_ETS_TYPE_EMC,4,2           ## @NVM_ETS_TYPE_EMC
	.comm	_NVM_ETS_LTHRES_DELTA_MASK,4,2  ## @NVM_ETS_LTHRES_DELTA_MASK
	.comm	_NVM_ETS_LTHRES_DELTA_SHIFT,4,2 ## @NVM_ETS_LTHRES_DELTA_SHIFT
	.comm	_NVM_ETS_NUM_SENSORS_MASK,4,2   ## @NVM_ETS_NUM_SENSORS_MASK
	.comm	_NVM_ETS_DATA_INDEX_MASK,4,2    ## @NVM_ETS_DATA_INDEX_MASK
	.comm	_NVM_ETS_DATA_INDEX_SHIFT,4,2   ## @NVM_ETS_DATA_INDEX_SHIFT
	.comm	_NVM_ETS_DATA_LOC_MASK,4,2      ## @NVM_ETS_DATA_LOC_MASK
	.comm	_NVM_ETS_DATA_LOC_SHIFT,4,2     ## @NVM_ETS_DATA_LOC_SHIFT
	.comm	_NVM_ETS_DATA_HTHRESH_MASK,4,2  ## @NVM_ETS_DATA_HTHRESH_MASK
	.comm	_e1000_emc_therm_limit,8,3      ## @e1000_emc_therm_limit
	.comm	_E1000_I2C_THERMAL_SENSOR_ADDR,4,2 ## @E1000_I2C_THERMAL_SENSOR_ADDR
	.comm	_E1000_MAX_SENSORS,4,2          ## @E1000_MAX_SENSORS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_init_thermal_sensor_thresh_generic ; -- Begin function igb_init_thermal_sensor_thresh_generic
	.p2align	2
_igb_init_thermal_sensor_thresh_generic: ; @igb_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
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x9, _e1000_i350@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_i350@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _E1000_NOT_IMPLEMENTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E1000_NOT_IMPLEMENTED@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
LBB0_3:
	mov	x0, x19
	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
LBB0_4:
Lloh6:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
	add	x0, x20, #32
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x20, #32]
	mov	w9, #1
	str	w9, [x8]
Lloh9:
	adrp	x8, _E1000_THHIGHTC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E1000_THHIGHTC@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_rd32
	and	w8, w0, #0xff
	ldr	x9, [x20, #32]
	str	w8, [x9, #4]
Lloh12:
	adrp	x8, _E1000_THLOWTC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E1000_THLOWTC@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_rd32
	and	w8, w0, #0xff
	ldr	x9, [x20, #32]
	str	w8, [x9, #8]
	ldr	x8, [x20, #8]
Lloh15:
	adrp	x9, _NVM_ETS_CFG@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NVM_ETS_CFG@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x9]
	add	x3, sp, #28
	mov	x0, x20
	mov	w2, #1
	blr	x8
	ldr	w1, [sp, #28]
	cbz	w1, LBB0_3
; %bb.5:
	mov	w8, #65535
	cmp	w1, w8
	b.eq	LBB0_3
; %bb.6:
	ldr	x8, [x20, #8]
	add	x3, sp, #24
	mov	x0, x20
	mov	w2, #1
	blr	x8
	ldr	w8, [sp, #24]
Lloh18:
	adrp	x9, _NVM_ETS_TYPE_MASK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _NVM_ETS_TYPE_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh21:
	adrp	x10, _NVM_ETS_TYPE_SHIFT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _NVM_ETS_TYPE_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	asr	w9, w9, w10
Lloh24:
	adrp	x10, _NVM_ETS_TYPE_EMC@GOTPAGE
Lloh25:
	ldr	x10, [x10, _NVM_ETS_TYPE_EMC@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_2
; %bb.7:
Lloh27:
	adrp	x9, _NVM_ETS_NUM_SENSORS_MASK@GOTPAGE
Lloh28:
	ldr	x9, [x9, _NVM_ETS_NUM_SENSORS_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	and	x9, x9, x8
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.8:
Lloh30:
	adrp	x10, _NVM_ETS_LTHRES_DELTA_MASK@GOTPAGE
Lloh31:
	ldr	x10, [x10, _NVM_ETS_LTHRES_DELTA_MASK@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	and	w8, w10, w8
Lloh33:
	adrp	x10, _NVM_ETS_LTHRES_DELTA_SHIFT@GOTPAGE
Lloh34:
	ldr	x10, [x10, _NVM_ETS_LTHRES_DELTA_SHIFT@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	asr	w8, w8, w10
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	add	x24, x9, #1
	mov	w25, #1
	mov	w26, #20
Lloh36:
	adrp	x28, _E1000_MAX_SENSORS@GOTPAGE
Lloh37:
	ldr	x28, [x28, _E1000_MAX_SENSORS@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x25, x25, #1
	add	x26, x26, #12
	cmp	x24, x25
	b.eq	LBB0_3
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w9, [sp, #28]
	add	w1, w25, w9
	add	x3, sp, #20
	mov	x0, x20
	mov	w2, #1
	blr	x8
	ldr	w23, [sp, #20]
Lloh38:
	adrp	x8, _NVM_ETS_DATA_INDEX_MASK@GOTPAGE
Lloh39:
	ldr	x8, [x8, _NVM_ETS_DATA_INDEX_MASK@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	and	w8, w8, w23
Lloh41:
	adrp	x9, _NVM_ETS_DATA_INDEX_SHIFT@GOTPAGE
Lloh42:
	ldr	x9, [x9, _NVM_ETS_DATA_INDEX_SHIFT@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh44:
	adrp	x9, _NVM_ETS_DATA_LOC_MASK@GOTPAGE
Lloh45:
	ldr	x9, [x9, _NVM_ETS_DATA_LOC_MASK@GOTPAGEOFF]
Lloh46:
	ldr	w21, [x9]
Lloh47:
	adrp	x9, _NVM_ETS_DATA_LOC_SHIFT@GOTPAGE
Lloh48:
	ldr	x9, [x9, _NVM_ETS_DATA_LOC_SHIFT@GOTPAGEOFF]
Lloh49:
	ldr	w27, [x9]
Lloh50:
	adrp	x9, _NVM_ETS_DATA_HTHRESH_MASK@GOTPAGE
Lloh51:
	ldr	x9, [x9, _NVM_ETS_DATA_HTHRESH_MASK@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	and	w22, w9, w23
	ldr	x9, [x20]
Lloh53:
	adrp	x10, _e1000_emc_therm_limit@GOTPAGE
Lloh54:
	ldr	x10, [x10, _e1000_emc_therm_limit@GOTPAGEOFF]
Lloh55:
	ldr	x10, [x10]
	ldr	w1, [x10, w8, sxtw #2]
Lloh56:
	adrp	x8, _E1000_I2C_THERMAL_SENSOR_ADDR@GOTPAGE
Lloh57:
	ldr	x8, [x8, _E1000_I2C_THERMAL_SENSOR_ADDR@GOTPAGEOFF]
Lloh58:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x22
	blr	x9
	ldrsw	x8, [x28]
	cmp	x25, x8
	b.ge	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	and	w8, w21, w23
	asr	w8, w8, w27
	cbz	w8, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x9, [x9]
	add	x9, x9, x26
	stp	w8, w22, [x9, #-8]
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	sub	w8, w22, w8
	str	w8, [x9]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_SUCCESS,4,2              ; @E1000_SUCCESS
	.comm	_e1000_i350,8,3                 ; @e1000_i350
	.comm	_E1000_NOT_IMPLEMENTED,4,2      ; @E1000_NOT_IMPLEMENTED
	.comm	_E1000_THHIGHTC,4,2             ; @E1000_THHIGHTC
	.comm	_E1000_THLOWTC,4,2              ; @E1000_THLOWTC
	.comm	_NVM_ETS_CFG,4,2                ; @NVM_ETS_CFG
	.comm	_NVM_ETS_TYPE_MASK,4,2          ; @NVM_ETS_TYPE_MASK
	.comm	_NVM_ETS_TYPE_SHIFT,4,2         ; @NVM_ETS_TYPE_SHIFT
	.comm	_NVM_ETS_TYPE_EMC,4,2           ; @NVM_ETS_TYPE_EMC
	.comm	_NVM_ETS_LTHRES_DELTA_MASK,4,2  ; @NVM_ETS_LTHRES_DELTA_MASK
	.comm	_NVM_ETS_LTHRES_DELTA_SHIFT,4,2 ; @NVM_ETS_LTHRES_DELTA_SHIFT
	.comm	_NVM_ETS_NUM_SENSORS_MASK,4,2   ; @NVM_ETS_NUM_SENSORS_MASK
	.comm	_NVM_ETS_DATA_INDEX_MASK,4,2    ; @NVM_ETS_DATA_INDEX_MASK
	.comm	_NVM_ETS_DATA_INDEX_SHIFT,4,2   ; @NVM_ETS_DATA_INDEX_SHIFT
	.comm	_NVM_ETS_DATA_LOC_MASK,4,2      ; @NVM_ETS_DATA_LOC_MASK
	.comm	_NVM_ETS_DATA_LOC_SHIFT,4,2     ; @NVM_ETS_DATA_LOC_SHIFT
	.comm	_NVM_ETS_DATA_HTHRESH_MASK,4,2  ; @NVM_ETS_DATA_HTHRESH_MASK
	.comm	_e1000_emc_therm_limit,8,3      ; @e1000_emc_therm_limit
	.comm	_E1000_I2C_THERMAL_SENSOR_ADDR,4,2 ; @E1000_I2C_THERMAL_SENSOR_ADDR
	.comm	_E1000_MAX_SENSORS,4,2          ; @E1000_MAX_SENSORS
.subsections_via_symbols
