	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_fan_probe
_gpio_fan_probe:                        ## @gpio_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%r15, 48(%rax)
	movq	%rax, %rdi
	callq	_gpio_fan_get_of_data
	testl	%eax, %eax
	jne	LBB0_15
## %bb.4:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	%rbx, %rdi
	addq	$40, %rdi
	callq	_mutex_init
	cmpq	$0, 32(%rbx)
	je	LBB0_11
## %bb.5:
	cmpq	$0, (%rbx)
	jle	LBB0_11
## %bb.6:
	cmpl	$0, 28(%rbx)
	je	LBB0_8
## %bb.7:
	cmpl	$1, 8(%rbx)
	jg	LBB0_9
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rbx, %rdi
	callq	_fan_ctrl_init
	testl	%eax, %eax
	jne	LBB0_15
## %bb.10:
	movq	_gpio_fan_stop@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_devm_add_action_or_reset
	testl	%eax, %eax
	jne	LBB0_15
LBB0_11:
	movq	_gpio_fan_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_devm_hwmon_device_register_with_groups
	movl	%eax, 24(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.16:
	movl	24(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_12:
	cmpq	$0, 16(%rbx)
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_fan_alarm_init
	testl	%eax, %eax
	jne	LBB0_15
LBB0_14:
	leaq	L_.str.1(%rip), %rdx
	movq	_gpio_fan_cool_ops@GOTPCREL(%rip), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rcx
	callq	_devm_thermal_of_cooling_device_register
	movl	%eax, 12(%rbx)
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_gpio_fan_stop,4,2              ## @gpio_fan_stop
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gpio_fan"

	.comm	_gpio_fan_groups,4,2            ## @gpio_fan_groups
L_.str.1:                               ## @.str.1
	.asciz	"gpio-fan"

	.comm	_gpio_fan_cool_ops,4,2          ## @gpio_fan_cool_ops
L_.str.2:                               ## @.str.2
	.asciz	"GPIO fan initialized\n"

	.no_dead_strip	_gpio_fan_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_fan_probe
_gpio_fan_probe:                        ; @gpio_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
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	str	x19, [x0, #48]
	bl	_gpio_fan_get_of_data
	cbnz	w0, LBB0_9
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	_platform_set_drvdata
	add	x0, x21, #40
	bl	_mutex_init
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_12
; %bb.3:
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_12
; %bb.4:
	ldr	w8, [x21, #28]
	cbz	w8, LBB0_6
; %bb.5:
	ldr	w8, [x21, #8]
	cmp	w8, #1
	b.gt	LBB0_10
LBB0_6:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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_10:
	mov	x0, x21
	bl	_fan_ctrl_init
	cbnz	w0, LBB0_9
; %bb.11:
Lloh7:
	adrp	x8, _gpio_fan_stop@GOTPAGE
Lloh8:
	ldr	x8, [x8, _gpio_fan_stop@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_devm_add_action_or_reset
	cbnz	w0, LBB0_9
LBB0_12:
Lloh10:
	adrp	x8, _gpio_fan_groups@GOTPAGE
Lloh11:
	ldr	x8, [x8, _gpio_fan_groups@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_devm_hwmon_device_register_with_groups
	str	w0, [x21, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.13:
	ldr	w0, [x21, #24]
	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
LBB0_14:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_16
; %bb.15:
	mov	x0, x21
	bl	_fan_alarm_init
	cbnz	w0, LBB0_9
LBB0_16:
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh17:
	adrp	x4, _gpio_fan_cool_ops@GOTPAGE
Lloh18:
	ldr	x4, [x4, _gpio_fan_cool_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	_devm_thermal_of_cooling_device_register
	str	w0, [x21, #12]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_gpio_fan_stop,4,2              ; @gpio_fan_stop
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gpio_fan"

	.comm	_gpio_fan_groups,4,2            ; @gpio_fan_groups
l_.str.1:                               ; @.str.1
	.asciz	"gpio-fan"

	.comm	_gpio_fan_cool_ops,4,2          ; @gpio_fan_cool_ops
l_.str.2:                               ; @.str.2
	.asciz	"GPIO fan initialized\n"

	.no_dead_strip	_gpio_fan_probe
.subsections_via_symbols
