	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcp3422_read_channel
_mcp3422_read_channel:                  ## @mcp3422_read_channel
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	(%rsi), %r12
	movq	(%rdi), %rdi
	callq	_MCP3422_CHANNEL
	cmpq	%rax, %r12
	je	LBB0_3
## %bb.1:
	movq	_MCP3422_CHANNEL_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	notq	%r13
	andq	(%r15), %r13
	movq	%r12, %rdi
	callq	_MCP3422_CHANNEL_VALUE
	orq	%rax, %r13
	movq	_MCP3422_PGA_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	notq	%rbx
	andq	%r13, %rbx
	movq	8(%r15), %rax
	movl	(%rax,%r12,4), %edi
	callq	_MCP3422_PGA_VALUE
	orq	%rax, %rbx
	movq	%rbx, -48(%rbp)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mcp3422_update_config
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movq	_mcp3422_read_times@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%r15), %rdi
	callq	_MCP3422_SAMPLE_RATE
	movl	(%rbx,%rax,4), %edi
	callq	_msleep
LBB0_3:
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mcp3422_read
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCP3422_CHANNEL_MASK,8,3       ## @MCP3422_CHANNEL_MASK
	.comm	_MCP3422_PGA_MASK,8,3           ## @MCP3422_PGA_MASK
	.comm	_mcp3422_read_times,8,3         ## @mcp3422_read_times
	.no_dead_strip	_mcp3422_read_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcp3422_read_channel
_mcp3422_read_channel:                  ; @mcp3422_read_channel
	.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
	ldr	x21, [x1]
	ldr	x0, [x0]
	bl	_MCP3422_CHANNEL
	cmp	x21, x0
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _MCP3422_CHANNEL_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MCP3422_CHANNEL_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	bic	x22, x8, x9
	mov	x0, x21
	bl	_MCP3422_CHANNEL_VALUE
Lloh3:
	adrp	x8, _MCP3422_PGA_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MCP3422_PGA_MASK@GOTPAGEOFF]
	orr	x9, x22, x0
Lloh5:
	ldr	x8, [x8]
	bic	x22, x9, x8
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x21, lsl #2]
	bl	_MCP3422_PGA_VALUE
	orr	x1, x22, x0
	str	x1, [sp, #8]
	mov	x0, x20
	bl	_mcp3422_update_config
	tbnz	w0, #31, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _mcp3422_read_times@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mcp3422_read_times@GOTPAGEOFF]
Lloh8:
	ldr	x21, [x8]
	ldr	x0, [x20]
	bl	_MCP3422_SAMPLE_RATE
	ldr	w0, [x21, x0, lsl #2]
	bl	_msleep
LBB0_3:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_mcp3422_read
LBB0_4:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MCP3422_CHANNEL_MASK,8,3       ; @MCP3422_CHANNEL_MASK
	.comm	_MCP3422_PGA_MASK,8,3           ; @MCP3422_PGA_MASK
	.comm	_mcp3422_read_times,8,3         ; @mcp3422_read_times
	.no_dead_strip	_mcp3422_read_channel
.subsections_via_symbols
