	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iio_hwmon_read_val
_iio_hwmon_read_val:                    ## @iio_hwmon_read_val
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_dev_get_drvdata
	movq	(%rbx), %rbx
	shlq	$2, %rbx
	addq	(%rax), %rbx
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_iio_read_channel_processed
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_iio_get_channel_type
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movl	-32(%rbp), %eax
	movq	_IIO_POWER@GOTPCREL(%rip), %rcx
	movl	-28(%rbp), %edx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	imull	$1000, %edx, %edx               ## imm = 0x3E8
	movl	%edx, -28(%rbp)
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_sprintf
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_POWER,4,2                  ## @IIO_POWER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

	.no_dead_strip	_iio_hwmon_read_val
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iio_hwmon_read_val
_iio_hwmon_read_val:                    ; @iio_hwmon_read_val
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	mov	x21, x0
	mov	x0, x20
	bl	_dev_get_drvdata
	ldr	x8, [x0]
	ldr	x9, [x21]
	add	x20, x8, x9, lsl #2
	add	x1, sp, #12
	mov	x0, x20
	bl	_iio_read_channel_processed
	tbnz	w0, #31, LBB0_5
; %bb.1:
	add	x1, sp, #8
	mov	x0, x20
	bl	_iio_get_channel_type
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldp	w8, w2, [sp, #8]
Lloh0:
	adrp	x9, _IIO_POWER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IIO_POWER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #1000
	mul	w2, w2, w8
	str	w2, [sp, #12]
LBB0_4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sprintf
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_POWER,4,2                  ; @IIO_POWER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

	.no_dead_strip	_iio_hwmon_read_val
.subsections_via_symbols
