	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function occ_show_extended
_occ_show_extended:                     ## @occ_show_extended
	.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, %r15
	movq	%rsi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr_2
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_occ_update_response
	testl	%eax, %eax
	je	LBB0_1
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%r12), %rax
	movslq	(%r14), %rcx
	shlq	$5, %rcx
	movl	4(%r14), %esi
	cmpl	$2, %esi
	je	LBB0_9
## %bb.2:
	leaq	(%rax,%rcx), %rdx
	cmpl	$1, %esi
	je	LBB0_7
## %bb.3:
	testl	%esi, %esi
	jne	LBB0_10
## %bb.4:
	movq	_EXTN_FLAG_SENSOR_ID@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r14d
	decl	%r14d
	testl	%esi, (%rdx)
	je	LBB0_6
## %bb.5:
	leaq	(%rax,%rcx), %rdi
	addq	$24, %rdi
	callq	_get_unaligned_be32
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %ecx
	jmp	LBB0_8
LBB0_9:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	decl	%esi
	movq	16(%rax,%rcx), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %r8d
	movl	8(%rax), %r9d
	movl	12(%rax), %r10d
	movl	16(%rax), %r11d
	movl	20(%rax), %ebx
	subq	$8, %rsp
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	callq	_snprintf
	addq	$32, %rsp
	jmp	LBB0_11
LBB0_7:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decl	%esi
	movl	(%rdx), %ecx
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
LBB0_8:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snprintf                       ## TAILCALL
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_6:
	movq	8(%rax,%rcx), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %r8d
	movl	8(%rax), %r9d
	movl	12(%rax), %ebx
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	pushq	%rbx
	callq	_snprintf
	addq	$16, %rsp
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EXTN_FLAG_SENSOR_ID,4,2        ## @EXTN_FLAG_SENSOR_ID
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u"

L_.str.1:                               ## @.str.1
	.asciz	"%02x%02x%02x%02x\n"

L_.str.2:                               ## @.str.2
	.asciz	"%02x\n"

L_.str.3:                               ## @.str.3
	.asciz	"%02x%02x%02x%02x%02x%02x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_occ_show_extended
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function occ_show_extended
_occ_show_extended:                     ; @occ_show_extended
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	ldr	x8, [x20]
	ldp	w9, w11, [x21]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x10, x8, x9, lsl #5
	cmp	w11, #2
	b.eq	LBB0_7
; %bb.3:
	cmp	w11, #1
	b.eq	LBB0_8
; %bb.4:
	cbnz	w11, LBB0_10
; %bb.5:
	ldr	w10, [x10]
Lloh0:
	adrp	x11, _EXTN_FLAG_SENSOR_ID@GOTPAGE
Lloh1:
	ldr	x11, [x11, _EXTN_FLAG_SENSOR_ID@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
Lloh3:
	adrp	x12, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x12, [x12, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x12]
	sub	w20, w12, #1
	add	x8, x8, x9, lsl #5
	and	w10, w11, w10
	cbz	w10, LBB0_11
; %bb.6:
	add	x0, x8, #24
	bl	_get_unaligned_be32
	mov	x3, x0
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	b	LBB0_9
LBB0_7:
Lloh8:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	sub	w1, w8, #1
	ldr	x8, [x10, #16]
	ldp	w3, w9, [x8]
	ldp	w10, w11, [x8, #8]
	ldp	w12, w8, [x8, #16]
	stp	x12, x8, [sp, #24]
	stp	x10, x11, [sp, #8]
	str	x9, [sp]
Lloh11:
	adrp	x2, l_.str.3@PAGE
Lloh12:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_snprintf
	b	LBB0_1
LBB0_8:
Lloh13:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	sub	w1, w8, #1
	ldr	w3, [x10]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_snprintf
LBB0_10:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
LBB0_11:
	ldr	x8, [x8, #8]
	ldp	w3, w9, [x8]
	ldp	w10, w8, [x8, #8]
	stp	x10, x8, [sp, #8]
	str	x9, [sp]
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_snprintf
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EXTN_FLAG_SENSOR_ID,4,2        ; @EXTN_FLAG_SENSOR_ID
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u"

l_.str.1:                               ; @.str.1
	.asciz	"%02x%02x%02x%02x\n"

l_.str.2:                               ; @.str.2
	.asciz	"%02x\n"

l_.str.3:                               ; @.str.3
	.asciz	"%02x%02x%02x%02x%02x%02x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_occ_show_extended
.subsections_via_symbols
