	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_get_thermal_sensor_data_generic ## -- Begin function igb_get_thermal_sensor_data_generic
	.p2align	4, 0x90
_igb_get_thermal_sensor_data_generic:   ## @igb_get_thermal_sensor_data_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	$24, %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), %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_E1000_THMJT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rd32
	movzbl	%al, %eax
	movq	32(%r13), %rcx
	movl	%eax, (%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_11
## %bb.4:
	cmpl	$65535, %esi                    ## imm = 0xFFFF
	je	LBB0_11
## %bb.5:
	leaq	-52(%rbp), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	callq	*8(%r13)
	movl	-52(%rbp), %eax
	movq	_NVM_ETS_TYPE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_NVM_ETS_TYPE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movq	_NVM_ETS_TYPE_EMC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jne	LBB0_2
## %bb.6:
	movq	_NVM_ETS_NUM_SENSORS_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_E1000_MAX_SENSORS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovgel	%ecx, %eax
	cmpl	$2, %eax
	jl	LBB0_11
## %bb.7:
	movl	%eax, %r12d
	movl	$1, %ebx
	movl	$4, %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	addq	$4, %r15
	cmpq	%rbx, %r12
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %esi
	addl	%ebx, %esi
	movq	%r13, %rdi
	movl	$1, %edx
	leaq	-48(%rbp), %rcx
	callq	*8(%r13)
	movl	-48(%rbp), %eax
	movq	_NVM_ETS_DATA_LOC_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_NVM_ETS_DATA_LOC_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarl	%cl, %edx
	testl	%edx, %edx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_NVM_ETS_DATA_INDEX_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_NVM_ETS_DATA_INDEX_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarl	%cl, %eax
	movq	_e1000_emc_temp_data@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	32(%r13), %rcx
	addq	%r15, %rcx
	movq	%r13, %rdi
	callq	*(%r13)
	jmp	LBB0_10
	.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_THMJT,4,2                ## @E1000_THMJT
	.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_NUM_SENSORS_MASK,4,2   ## @NVM_ETS_NUM_SENSORS_MASK
	.comm	_E1000_MAX_SENSORS,4,2          ## @E1000_MAX_SENSORS
	.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	_e1000_emc_temp_data,8,3        ## @e1000_emc_temp_data
	.comm	_E1000_I2C_THERMAL_SENSOR_ADDR,4,2 ## @E1000_I2C_THERMAL_SENSOR_ADDR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_get_thermal_sensor_data_generic ; -- Begin function igb_get_thermal_sensor_data_generic
	.p2align	2
_igb_get_thermal_sensor_data_generic:   ; @igb_get_thermal_sensor_data_generic
	.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
	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, #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
LBB0_4:
Lloh6:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
Lloh9:
	adrp	x8, _E1000_THMJT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E1000_THMJT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_rd32
	and	w8, w0, #0xff
	ldr	x9, [x20, #32]
	str	w8, [x9]
	ldr	x8, [x20, #8]
Lloh12:
	adrp	x9, _NVM_ETS_CFG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NVM_ETS_CFG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
	add	x3, sp, #12
	mov	x0, x20
	mov	w2, #1
	blr	x8
	ldr	w1, [sp, #12]
	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, #8
	mov	x0, x20
	mov	w2, #1
	blr	x8
	ldr	w8, [sp, #8]
Lloh15:
	adrp	x9, _NVM_ETS_TYPE_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NVM_ETS_TYPE_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh18:
	adrp	x10, _NVM_ETS_TYPE_SHIFT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _NVM_ETS_TYPE_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	asr	w9, w9, w10
Lloh21:
	adrp	x10, _NVM_ETS_TYPE_EMC@GOTPAGE
Lloh22:
	ldr	x10, [x10, _NVM_ETS_TYPE_EMC@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_2
; %bb.7:
Lloh24:
	adrp	x9, _NVM_ETS_NUM_SENSORS_MASK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _NVM_ETS_NUM_SENSORS_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh27:
	adrp	x9, _E1000_MAX_SENSORS@GOTPAGE
Lloh28:
	ldr	x9, [x9, _E1000_MAX_SENSORS@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w21, w8, w9, lt
	cmp	w21, #2
	b.lt	LBB0_3
; %bb.8:
	mov	w22, #1
	mov	w23, #4
Lloh30:
	adrp	x24, _NVM_ETS_DATA_LOC_MASK@GOTPAGE
Lloh31:
	ldr	x24, [x24, _NVM_ETS_DATA_LOC_MASK@GOTPAGEOFF]
Lloh32:
	adrp	x25, _NVM_ETS_DATA_LOC_SHIFT@GOTPAGE
Lloh33:
	ldr	x25, [x25, _NVM_ETS_DATA_LOC_SHIFT@GOTPAGEOFF]
Lloh34:
	adrp	x27, _NVM_ETS_DATA_INDEX_SHIFT@GOTPAGE
Lloh35:
	ldr	x27, [x27, _NVM_ETS_DATA_INDEX_SHIFT@GOTPAGEOFF]
Lloh36:
	adrp	x28, _e1000_emc_temp_data@GOTPAGE
Lloh37:
	ldr	x28, [x28, _e1000_emc_temp_data@GOTPAGEOFF]
Lloh38:
	adrp	x26, _E1000_I2C_THERMAL_SENSOR_ADDR@GOTPAGE
Lloh39:
	ldr	x26, [x26, _E1000_I2C_THERMAL_SENSOR_ADDR@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #1
	add	x23, x23, #4
	cmp	x21, x22
	b.eq	LBB0_3
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w9, [sp, #12]
	add	w1, w22, w9
	add	x3, sp, #4
	mov	x0, x20
	mov	w2, #1
	blr	x8
	ldr	w8, [sp, #4]
	ldr	w9, [x24]
	and	w9, w9, w8
	ldr	w10, [x25]
	asr	w9, w9, w10
	cbz	w9, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
Lloh40:
	adrp	x9, _NVM_ETS_DATA_INDEX_MASK@GOTPAGE
Lloh41:
	ldr	x9, [x9, _NVM_ETS_DATA_INDEX_MASK@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	and	w8, w9, w8
	ldr	w9, [x27]
	asr	w8, w8, w9
	ldr	x9, [x20]
	ldr	x10, [x28]
	ldr	w1, [x10, w8, sxtw #2]
	ldr	w2, [x26]
	ldr	x8, [x20, #32]
	add	x3, x8, x23
	mov	x0, x20
	blr	x9
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.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_THMJT,4,2                ; @E1000_THMJT
	.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_NUM_SENSORS_MASK,4,2   ; @NVM_ETS_NUM_SENSORS_MASK
	.comm	_E1000_MAX_SENSORS,4,2          ; @E1000_MAX_SENSORS
	.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	_e1000_emc_temp_data,8,3        ; @e1000_emc_temp_data
	.comm	_E1000_I2C_THERMAL_SENSOR_ADDR,4,2 ; @E1000_I2C_THERMAL_SENSOR_ADDR
.subsections_via_symbols
