	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function occ_probe
_occ_probe:                             ## @occ_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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rax
	movq	%rax, -56(%rbp)
	movq	%rdi, -40(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, 48(%rax)
	movl	8(%r14), %eax
	movl	%eax, 40(%rbx)
	leaq	36(%rbx), %rdi
	callq	_mutex_init
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	leaq	-28(%rbp), %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	-28(%rbp), %esi
	leal	1(%rsi), %edx
	movl	(%r15), %ecx
	movq	_occ_ida@GOTPCREL(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_ida_simple_get
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jns	LBB0_6
LBB0_5:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movq	_occ_ida@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_ida_simple_get
	movq	%rax, (%rbx)
LBB0_6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movl	32(%rbx), %edi
	movq	(%rbx), %rcx
	leaq	L_.str.2(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	_occ_fops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	_MISC_DYNAMIC_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	32(%rbx), %eax
	movl	%eax, 16(%rbx)
	movq	%r14, 8(%rbx)
	callq	_misc_register
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	(%rbx), %esi
	movq	_occ_ida@GOTPCREL(%rip), %rdi
	callq	_ida_simple_remove
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_10
LBB0_8:
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_platform_device_register_full
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_10:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"occ-hwmon"

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

	.comm	_occ_ida,4,2                    ## @occ_ida
	.comm	_INT_MAX,4,2                    ## @INT_MAX
L_.str.2:                               ## @.str.2
	.asciz	"occ%d"

	.comm	_occ_fops,4,2                   ## @occ_fops
	.comm	_MISC_DYNAMIC_MINOR,4,2         ## @MISC_DYNAMIC_MINOR
L_.str.3:                               ## @.str.3
	.asciz	"failed to register miscdevice: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to create hwmon device\n"

	.no_dead_strip	_occ_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function occ_probe
_occ_probe:                             ; @occ_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp]
	str	x0, [sp, #16]
Lloh2:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #48]
	ldr	w8, [x19, #8]
	str	w8, [x0, #40]
	add	x0, x0, #36
	bl	_mutex_init
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.2:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #28
	bl	_of_property_read_u32
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w1, [sp, #28]
	add	w2, w1, #1
	ldr	w3, [x21]
Lloh6:
	adrp	x0, _occ_ida@GOTPAGE
Lloh7:
	ldr	x0, [x0, _occ_ida@GOTPAGEOFF]
	bl	_ida_simple_get
	str	x0, [x20]
	tbz	x0, #63, LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	ldr	w3, [x21]
Lloh11:
	adrp	x0, _occ_ida@GOTPAGE
Lloh12:
	ldr	x0, [x0, _occ_ida@GOTPAGEOFF]
	mov	w1, #1
	bl	_ida_simple_get
	str	x0, [x20]
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldr	w0, [x20, #32]
	ldr	x3, [x20]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #4
	bl	_snprintf
Lloh15:
	adrp	x8, _occ_fops@GOTPAGE
Lloh16:
	ldr	x8, [x8, _occ_fops@GOTPAGEOFF]
	mov	x0, x20
	str	x19, [x0, #8]!
	str	x8, [x0, #16]
Lloh17:
	adrp	x8, _MISC_DYNAMIC_MINOR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MISC_DYNAMIC_MINOR@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x20, #32]
	stp	w9, w8, [x0, #8]
	bl	_misc_register
	cbz	w0, LBB0_8
; %bb.6:
	mov	x21, x0
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
	ldr	w1, [x20]
Lloh22:
	adrp	x0, _occ_ida@GOTPAGE
Lloh23:
	ldr	x0, [x0, _occ_ida@GOTPAGEOFF]
	bl	_ida_simple_remove
	b	LBB0_11
LBB0_7:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_8:
	ldr	x8, [x20]
	str	w8, [sp, #8]
	mov	x0, sp
	bl	_platform_device_register_full
	cbnz	x0, LBB0_10
; %bb.9:
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_10:
	mov	w21, #0
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"occ-hwmon"

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

	.comm	_occ_ida,4,2                    ; @occ_ida
	.comm	_INT_MAX,4,2                    ; @INT_MAX
l_.str.2:                               ; @.str.2
	.asciz	"occ%d"

	.comm	_occ_fops,4,2                   ; @occ_fops
	.comm	_MISC_DYNAMIC_MINOR,4,2         ; @MISC_DYNAMIC_MINOR
l_.str.3:                               ; @.str.3
	.asciz	"failed to register miscdevice: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to create hwmon device\n"

	.no_dead_strip	_occ_probe
.subsections_via_symbols
