	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxgb4_thermal_init             ## -- Begin function cxgb4_thermal_init
	.p2align	4, 0x90
_cxgb4_thermal_init:                    ## @cxgb4_thermal_init
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_CXGB4_NUM_TRIPS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_FW_PARAMS_MNEM_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FW_PARAMS_MNEM_V
	movl	%eax, %r14d
	movq	_FW_PARAMS_PARAM_DEV_DIAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FW_PARAMS_PARAM_X_V
	movl	%eax, %ebx
	orl	%r14d, %ebx
	movq	_FW_PARAM_DEV_DIAG_MAXTMPTHRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FW_PARAMS_PARAM_Y_V
	orl	%ebx, %eax
	movl	%eax, -40(%rbp)
	movl	4(%r15), %edx
	movl	8(%r15), %esi
	subq	$8, %rsp
	leaq	-36(%rbp), %rax
	xorl	%r14d, %r14d
	leaq	-40(%rbp), %r9
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	pushq	%rax
	callq	_t4_query_params
	addq	$16, %rsp
	movl	$0, %esi
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	imull	$1000, -36(%rbp), %eax          ## imm = 0x3E8
	movl	%eax, 16(%r15)
	movq	_THERMAL_TRIP_CRITICAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movl	%r12d, %esi
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movq	_cxgb4_thermal_ops@GOTPCREL(%rip), %r8
	xorl	%edx, %edx
	movq	%r15, %rcx
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_thermal_zone_device_register
	addq	$16, %rsp
	movq	%rax, 24(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	24(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	$0, 24(%r15)
LBB0_4:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CXGB4_NUM_TRIPS,4,2            ## @CXGB4_NUM_TRIPS
	.comm	_FW_PARAMS_MNEM_DEV,4,2         ## @FW_PARAMS_MNEM_DEV
	.comm	_FW_PARAMS_PARAM_DEV_DIAG,4,2   ## @FW_PARAMS_PARAM_DEV_DIAG
	.comm	_FW_PARAM_DEV_DIAG_MAXTMPTHRESH,4,2 ## @FW_PARAM_DEV_DIAG_MAXTMPTHRESH
	.comm	_THERMAL_TRIP_CRITICAL,4,2      ## @THERMAL_TRIP_CRITICAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cxgb4"

	.comm	_cxgb4_thermal_ops,4,2          ## @cxgb4_thermal_ops
L_.str.1:                               ## @.str.1
	.asciz	"Failed to register thermal zone\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxgb4_thermal_init             ; -- Begin function cxgb4_thermal_init
	.p2align	2
_cxgb4_thermal_init:                    ; @cxgb4_thermal_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _CXGB4_NUM_TRIPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CXGB4_NUM_TRIPS@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _FW_PARAMS_MNEM_DEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_PARAMS_MNEM_DEV@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_FW_PARAMS_MNEM_V
	mov	x21, x0
Lloh6:
	adrp	x8, _FW_PARAMS_PARAM_DEV_DIAG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FW_PARAMS_PARAM_DEV_DIAG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_FW_PARAMS_PARAM_X_V
	orr	w21, w0, w21
Lloh9:
	adrp	x8, _FW_PARAM_DEV_DIAG_MAXTMPTHRESH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FW_PARAM_DEV_DIAG_MAXTMPTHRESH@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_FW_PARAMS_PARAM_Y_V
	orr	w8, w21, w0
	str	w8, [sp, #12]
	ldp	w2, w1, [x19, #4]
	add	x5, sp, #12
	add	x6, sp, #8
	mov	x0, x19
	mov	w3, #0
	mov	w4, #1
	bl	_t4_query_params
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	w8, [sp, #8]
	mov	w9, #1000
	mul	w8, w8, w9
	str	w8, [x19, #16]
Lloh12:
	adrp	x8, _THERMAL_TRIP_CRITICAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _THERMAL_TRIP_CRITICAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
Lloh17:
	adrp	x4, _cxgb4_thermal_ops@GOTPAGE
Lloh18:
	ldr	x4, [x4, _cxgb4_thermal_ops@GOTPAGEOFF]
	mov	x1, x20
	mov	w2, #0
	mov	x3, x19
	mov	x5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_thermal_zone_device_register
	str	x0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x0, [x19, #24]
	bl	_PTR_ERR
	mov	x20, x0
	ldr	w0, [x19]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	str	xzr, [x19, #24]
	b	LBB0_6
LBB0_5:
	mov	w20, #0
LBB0_6:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_CXGB4_NUM_TRIPS,4,2            ; @CXGB4_NUM_TRIPS
	.comm	_FW_PARAMS_MNEM_DEV,4,2         ; @FW_PARAMS_MNEM_DEV
	.comm	_FW_PARAMS_PARAM_DEV_DIAG,4,2   ; @FW_PARAMS_PARAM_DEV_DIAG
	.comm	_FW_PARAM_DEV_DIAG_MAXTMPTHRESH,4,2 ; @FW_PARAM_DEV_DIAG_MAXTMPTHRESH
	.comm	_THERMAL_TRIP_CRITICAL,4,2      ; @THERMAL_TRIP_CRITICAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cxgb4"

	.comm	_cxgb4_thermal_ops,4,2          ; @cxgb4_thermal_ops
l_.str.1:                               ; @.str.1
	.asciz	"Failed to register thermal zone\n"

.subsections_via_symbols
