	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function env_probe
_env_probe:                             ## @env_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	8(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$12, %esi
	callq	_devm_kzalloc
	movq	%rax, %r12
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testq	%r12, %r12
	je	LBB0_7
## %bb.1:
	movq	%r12, %rdi
	addq	$8, %rdi
	callq	_spin_lock_init
	movq	(%r14), %rdi
	movq	_REG_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rcx
	xorl	%esi, %esi
	callq	_of_ioremap
	movl	%eax, (%r12)
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movq	_env_group@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_sysfs_create_group
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	callq	_hwmon_device_register
	movl	%eax, 4(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	4(%r12), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_env_group@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_sysfs_remove_group
LBB0_5:
	movq	(%r14), %rdi
	movl	(%r12), %esi
	movl	(%r13), %edx
	callq	_of_iounmap
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_REG_SIZE,4,2                   ## @REG_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pic16f747"

	.comm	_env_group,4,2                  ## @env_group
	.no_dead_strip	_env_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function env_probe
_env_probe:                             ; @env_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	add	x21, x0, #8
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #12
	bl	_devm_kzalloc
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	add	x0, x0, #8
	bl	_spin_lock_init
	ldr	x0, [x19]
Lloh6:
	adrp	x23, _REG_SIZE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _REG_SIZE@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh8:
	adrp	x3, l_.str@PAGE
Lloh9:
	add	x3, x3, l_.str@PAGEOFF
	mov	w1, #0
	bl	_of_ioremap
	str	w0, [x20]
	cbz	w0, LBB0_6
; %bb.2:
Lloh10:
	adrp	x1, _env_group@GOTPAGE
Lloh11:
	ldr	x1, [x1, _env_group@GOTPAGEOFF]
	mov	x0, x21
	bl	_sysfs_create_group
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_hwmon_device_register
	str	w0, [x20, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w0, [x20, #4]
	bl	_PTR_ERR
	mov	x22, x0
Lloh12:
	adrp	x1, _env_group@GOTPAGE
Lloh13:
	ldr	x1, [x1, _env_group@GOTPAGEOFF]
	mov	x0, x21
	bl	_sysfs_remove_group
LBB0_5:
	ldr	x0, [x19]
	ldr	w1, [x20]
	ldr	w2, [x23]
	bl	_of_iounmap
LBB0_6:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w22, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_REG_SIZE,4,2                   ; @REG_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pic16f747"

	.comm	_env_group,4,2                  ; @env_group
	.no_dead_strip	_env_probe
.subsections_via_symbols
