	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpot_dac_channel_max_ohms
_dpot_dac_channel_max_ohms:             ## @dpot_dac_channel_max_ohms
	.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	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_iio_priv
	movq	%rax, %r15
	movl	(%rax), %edi
	leaq	-28(%rbp), %rsi
	callq	_iio_read_max_channel_raw
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	(%r15), %edi
	leaq	-32(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	callq	_iio_read_channel_scale
	cmpl	$130, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$129, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.5:
	movl	-32(%rbp), %ebx
	imull	-28(%rbp), %ebx
	jmp	LBB0_10
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_10
LBB0_6:
	movslq	-28(%rbp), %rax
	movslq	-32(%rbp), %rbx
	imulq	%rax, %rbx
	movslq	-36(%rbp), %rsi
	jmp	LBB0_7
LBB0_8:
	movslq	-32(%rbp), %rax
	movslq	-28(%rbp), %rcx
	imulq	%rax, %rcx
	imulq	$1000000000, %rcx, %rbx         ## imm = 0x3B9ACA00
	movb	-36(%rbp), %cl
	sarq	%cl, %rbx
	movl	$1000000000, %esi               ## imm = 0x3B9ACA00
LBB0_7:
	movq	%rbx, %rdi
	callq	_do_div
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dpot does not indicate its raw maximum value\n"

L_.str.1:                               ## @.str.1
	.asciz	"dpot has a scale that is too weird\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpot_dac_channel_max_ohms
_dpot_dac_channel_max_ohms:             ; @dpot_dac_channel_max_ohms
	.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, x0
	bl	_iio_priv
	mov	x21, x0
	ldr	w0, [x0]
	add	x1, sp, #4
	bl	_iio_read_max_channel_raw
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	w0, [x21]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_iio_read_channel_scale
	cmp	w0, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w0, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w0, #128
	b.ne	LBB0_8
; %bb.4:
	ldr	w8, [sp, #4]
	ldr	w9, [sp, #12]
	mul	w20, w9, w8
	b	LBB0_9
LBB0_5:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_9
LBB0_6:
	ldpsw	x8, x1, [sp, #4]
	ldrsw	x9, [sp, #12]
	mul	x20, x9, x8
	mov	x0, x20
	bl	_do_div
	b	LBB0_9
LBB0_7:
	ldrsw	x8, [sp, #12]
	ldrsw	x9, [sp, #4]
	mul	x8, x8, x9
	mov	w9, #51712
	movk	w9, #15258, lsl #16
	mul	x8, x8, x9
	ldr	w9, [sp, #8]
	asr	x20, x8, x9
	mov	x0, x20
	mov	w1, #51712
	movk	w1, #15258, lsl #16
	bl	_do_div
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_9
LBB0_8:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	x0, x20
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dpot does not indicate its raw maximum value\n"

l_.str.1:                               ; @.str.1
	.asciz	"dpot has a scale that is too weird\n"

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