	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxreg_fan_probe
_mlxreg_fan_probe:                      ## @mlxreg_fan_probe
	.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
	movq	%rdi, %r15
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movq	%rax, %r14
	movq	%r15, 16(%rax)
	movl	(%rbx), %eax
	movl	%eax, 8(%r14)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mlxreg_fan_config
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	_mlxreg_fan_hwmon_chip_info@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	callq	_devm_hwmon_device_register_with_info
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	%r12, %rdi
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_CONFIG_THERMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_REACHABLE
	testq	%rax, %rax
	je	LBB0_5
## %bb.11:
	leaq	L_.str.1(%rip), %rdx
	movq	_mlxreg_fan_cooling_ops@GOTPCREL(%rip), %r8
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rcx
	callq	_devm_thermal_of_cooling_device_register
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	(%r14), %rdi
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get platform data.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"mlxreg_fan"

	.comm	_mlxreg_fan_hwmon_chip_info,4,2 ## @mlxreg_fan_hwmon_chip_info
L_.str.2:                               ## @.str.2
	.asciz	"Failed to register hwmon device\n"

	.comm	_CONFIG_THERMAL,4,2             ## @CONFIG_THERMAL
	.comm	_mlxreg_fan_cooling_ops,4,2     ## @mlxreg_fan_cooling_ops
L_.str.3:                               ## @.str.3
	.asciz	"Failed to register cooling device\n"

	.no_dead_strip	_mlxreg_fan_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxreg_fan_probe
_mlxreg_fan_probe:                      ; @mlxreg_fan_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_dev_get_platdata
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	str	x19, [x0, #16]
	ldr	w8, [x21]
	str	w8, [x0, #8]
	mov	x1, x21
	bl	_mlxreg_fan_config
	cbnz	w0, LBB0_8
; %bb.3:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh5:
	adrp	x3, _mlxreg_fan_hwmon_chip_info@GOTPAGE
Lloh6:
	ldr	x3, [x3, _mlxreg_fan_hwmon_chip_info@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x20
	mov	x4, #0
	bl	_devm_hwmon_device_register_with_info
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.4:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
	b	LBB0_12
LBB0_5:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh15:
	adrp	x8, _CONFIG_THERMAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CONFIG_THERMAL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_IS_REACHABLE
	cbz	x0, LBB0_8
; %bb.10:
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh20:
	adrp	x4, _mlxreg_fan_cooling_ops@GOTPAGE
Lloh21:
	ldr	x4, [x4, _mlxreg_fan_cooling_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, #0
	mov	x3, x20
	bl	_devm_thermal_of_cooling_device_register
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.11:
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20]
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get platform data.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"mlxreg_fan"

	.comm	_mlxreg_fan_hwmon_chip_info,4,2 ; @mlxreg_fan_hwmon_chip_info
l_.str.2:                               ; @.str.2
	.asciz	"Failed to register hwmon device\n"

	.comm	_CONFIG_THERMAL,4,2             ; @CONFIG_THERMAL
	.comm	_mlxreg_fan_cooling_ops,4,2     ; @mlxreg_fan_cooling_ops
l_.str.3:                               ; @.str.3
	.asciz	"Failed to register cooling device\n"

	.no_dead_strip	_mlxreg_fan_probe
.subsections_via_symbols
