	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function occ_sysfs_show
_occ_sysfs_show:                        ## @occ_sysfs_show
	.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	%rdx, %r14
	movq	%rsi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_occ_update_response
	testl	%eax, %eax
	je	LBB0_2
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%r15), %ecx
	cmpq	$7, %rcx
	ja	LBB0_5
## %bb.3:
	movq	(%r12), %rax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_4:
	movq	_OCC_STAT_MASTER@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_1
LBB0_6:
	movq	_OCC_STAT_ACTIVE@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %edx
	xorl	%ecx, %ecx
	testl	%edx, (%rax)
	jmp	LBB0_13
LBB0_8:
	movq	_OCC_EXT_STAT_DVFS_OT@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_9:
	movq	_OCC_EXT_STAT_DVFS_POWER@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_10:
	movq	_OCC_EXT_STAT_MEM_THROTTLE@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_11:
	movq	_OCC_EXT_STAT_QUICK_DROP@GOTPCREL(%rip), %rcx
LBB0_12:
	movl	(%rcx), %edx
	xorl	%ecx, %ecx
	testl	%edx, 4(%rax)
LBB0_13:
	setne	%cl
LBB0_14:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	decq	%rsi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snprintf                       ## TAILCALL
LBB0_15:
	movl	8(%rax), %ecx
	jmp	LBB0_14
LBB0_16:
	movq	_OCC_STAT_MASTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_18
## %bb.17:
	movl	12(%rax), %edi
	callq	_hweight8
	movl	%eax, %ecx
	jmp	LBB0_14
LBB0_18:
	movl	$1, %ecx
	jmp	LBB0_14
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_15
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_OCC_STAT_MASTER,4,2            ## @OCC_STAT_MASTER
	.comm	_OCC_STAT_ACTIVE,4,2            ## @OCC_STAT_ACTIVE
	.comm	_OCC_EXT_STAT_DVFS_OT,4,2       ## @OCC_EXT_STAT_DVFS_OT
	.comm	_OCC_EXT_STAT_DVFS_POWER,4,2    ## @OCC_EXT_STAT_DVFS_POWER
	.comm	_OCC_EXT_STAT_MEM_THROTTLE,4,2  ## @OCC_EXT_STAT_MEM_THROTTLE
	.comm	_OCC_EXT_STAT_QUICK_DROP,4,2    ## @OCC_EXT_STAT_QUICK_DROP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

	.no_dead_strip	_occ_sysfs_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function occ_sysfs_show
_occ_sysfs_show:                        ; @occ_sysfs_show
	.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, x2
	mov	x21, x1
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x21
	bl	_to_sensor_dev_attr
	mov	x21, x0
	mov	x0, x20
	bl	_occ_update_response
	cbz	w0, LBB0_2
LBB0_1:
	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_2:
	ldr	w9, [x21]
	cmp	w9, #7
	b.hi	LBB0_5
; %bb.3:
	ldr	x8, [x20]
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_4
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_4:
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _OCC_STAT_MASTER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _OCC_STAT_MASTER@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
LBB0_6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _OCC_STAT_ACTIVE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _OCC_STAT_ACTIVE@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	ldr	w8, [x8, #4]
Lloh9:
	adrp	x9, _OCC_EXT_STAT_DVFS_OT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _OCC_EXT_STAT_DVFS_OT@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	ldr	w8, [x8, #4]
Lloh11:
	adrp	x9, _OCC_EXT_STAT_DVFS_POWER@GOTPAGE
Lloh12:
	ldr	x9, [x9, _OCC_EXT_STAT_DVFS_POWER@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	ldr	w8, [x8, #4]
Lloh13:
	adrp	x9, _OCC_EXT_STAT_MEM_THROTTLE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _OCC_EXT_STAT_MEM_THROTTLE@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	ldr	w8, [x8, #4]
Lloh15:
	adrp	x9, _OCC_EXT_STAT_QUICK_DROP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _OCC_EXT_STAT_QUICK_DROP@GOTPAGEOFF]
LBB0_11:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w3, ne
LBB0_12:
Lloh17:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	sub	x1, x8, #1
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	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	_snprintf
LBB0_13:
	ldr	w3, [x8, #8]
	b	LBB0_12
LBB0_14:
	ldr	w9, [x8]
Lloh22:
	adrp	x10, _OCC_STAT_MASTER@GOTPAGE
Lloh23:
	ldr	x10, [x10, _OCC_STAT_MASTER@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_16
; %bb.15:
	ldr	w0, [x8, #12]
	bl	_hweight8
	mov	x3, x0
	b	LBB0_12
LBB0_16:
	mov	w3, #1
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
                                        ; -- End function
	.comm	_OCC_STAT_MASTER,4,2            ; @OCC_STAT_MASTER
	.comm	_OCC_STAT_ACTIVE,4,2            ; @OCC_STAT_ACTIVE
	.comm	_OCC_EXT_STAT_DVFS_OT,4,2       ; @OCC_EXT_STAT_DVFS_OT
	.comm	_OCC_EXT_STAT_DVFS_POWER,4,2    ; @OCC_EXT_STAT_DVFS_POWER
	.comm	_OCC_EXT_STAT_MEM_THROTTLE,4,2  ; @OCC_EXT_STAT_MEM_THROTTLE
	.comm	_OCC_EXT_STAT_QUICK_DROP,4,2    ; @OCC_EXT_STAT_QUICK_DROP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

	.no_dead_strip	_occ_sysfs_show
.subsections_via_symbols
