	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function occ_show_temp_2
_occ_show_temp_2:                       ## @occ_show_temp_2
	.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_2
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_occ_update_response
	testl	%eax, %eax
	je	LBB0_1
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	4(%r15), %ecx
	cmpq	$3, %rcx
	ja	LBB0_13
## %bb.2:
	movq	(%r12), %rax
	movslq	(%r15), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rax,%rdx,4), %rsi
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rcx,4), %rcx
	addq	%rdi, %rcx
	jmpq	*%rcx
LBB0_14:
	leaq	(%rax,%rdx,4), %rdi
	addq	$8, %rdi
	callq	_get_unaligned_be32
	movl	%eax, %ecx
	jmp	LBB0_15
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	movl	(%rsi), %ecx
	movq	_OCC_TEMP_SENSOR_FAULT@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	jne	LBB0_7
## %bb.4:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_11:
	movl	4(%rax,%rdx,4), %ecx
	jmp	LBB0_15
LBB0_12:
	movl	(%rsi), %eax
	movq	_OCC_TEMP_SENSOR_FAULT@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpl	(%rdx), %eax
	sete	%cl
LBB0_15:
	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_7:
	movl	4(%rax,%rdx,4), %eax
	movq	_OCC_FRU_TYPE_VRM@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_15
## %bb.8:
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.10:
	imull	$1000, %ecx, %ecx               ## imm = 0x3E8
	jmp	LBB0_15
LBB0_9:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_3
	.long	L0_0_set_11
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_OCC_TEMP_SENSOR_FAULT,4,2      ## @OCC_TEMP_SENSOR_FAULT
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_OCC_FRU_TYPE_VRM,4,2           ## @OCC_FRU_TYPE_VRM
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u\n"

	.no_dead_strip	_occ_show_temp_2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function occ_show_temp_2
_occ_show_temp_2:                       ; @occ_show_temp_2
	.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_2
	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	w10, [x21, #4]
	cmp	w10, #3
	b.hi	LBB0_5
; %bb.3:
	ldr	x8, [x20]
	ldrsw	x9, [x21]
	mov	w11, #12
	madd	x11, x9, x11, x8
Lloh0:
	adrp	x12, lJTI0_0@PAGE
Lloh1:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x13, LBB0_4
	ldrb	w14, [x12, x10]
	add	x13, x13, x14, lsl #2
	br	x13
LBB0_4:
	mov	w10, #12
	madd	x8, x9, x10, x8
	add	x0, x8, #8
	bl	_get_unaligned_be32
	mov	x3, x0
	b	LBB0_11
LBB0_5:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	ldr	w3, [x11]
Lloh4:
	adrp	x10, _OCC_TEMP_SENSOR_FAULT@GOTPAGE
Lloh5:
	ldr	x10, [x10, _OCC_TEMP_SENSOR_FAULT@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	cmp	w3, w10
	b.ne	LBB0_12
; %bb.7:
Lloh7:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
LBB0_9:
	mov	w10, #12
	madd	x8, x9, x10, x8
	ldr	w3, [x8, #4]
	b	LBB0_11
LBB0_10:
	ldr	w8, [x11]
Lloh9:
	adrp	x9, _OCC_TEMP_SENSOR_FAULT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _OCC_TEMP_SENSOR_FAULT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w3, eq
LBB0_11:
Lloh12:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	sub	x1, x8, #1
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	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_12:
	mov	w10, #12
	madd	x8, x9, x10, x8
	ldr	w8, [x8, #4]
Lloh17:
	adrp	x9, _OCC_FRU_TYPE_VRM@GOTPAGE
Lloh18:
	ldr	x9, [x9, _OCC_FRU_TYPE_VRM@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_11
; %bb.13:
	cbz	w3, LBB0_15
; %bb.14:
	mov	w8, #1000
	mul	w3, w3, w8
	b	LBB0_11
LBB0_15:
Lloh20:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
                                        ; -- End function
	.comm	_OCC_TEMP_SENSOR_FAULT,4,2      ; @OCC_TEMP_SENSOR_FAULT
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_OCC_FRU_TYPE_VRM,4,2           ; @OCC_FRU_TYPE_VRM
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u\n"

	.no_dead_strip	_occ_show_temp_2
.subsections_via_symbols
