	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcp3911_write
_mcp3911_write:                         ## @mcp3911_write
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %ecx
	callq	_dev_dbg
	leal	(,%r15,8), %eax
	movb	$24, %cl
	subb	%al, %cl
	shll	%cl, %ebx
	movl	%ebx, -36(%rbp)
	leaq	-36(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_cpu_to_be32s
	movl	8(%r14), %esi
	movl	%r12d, %edi
	callq	_MCP3911_REG_WRITE
	orl	%eax, -36(%rbp)
	movq	(%r14), %rdi
	incl	%r15d
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_spi_write
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"writing 0x%x to register 0x%x\n"

	.no_dead_strip	_mcp3911_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcp3911_write
_mcp3911_write:                         ; @mcp3911_write
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x21
	bl	_dev_dbg
	mov	w8, #24
	sub	w8, w8, w19, lsl #3
	lsl	w8, w20, w8
	str	w8, [sp, #12]
	add	x0, sp, #12
	bl	_cpu_to_be32s
	ldr	w1, [x22, #8]
	mov	x0, x21
	bl	_MCP3911_REG_WRITE
	ldr	w8, [sp, #12]
	orr	w8, w8, w0
	str	w8, [sp, #12]
	ldr	x0, [x22]
	add	w2, w19, #1
	add	x1, sp, #12
	bl	_spi_write
	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
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"writing 0x%x to register 0x%x\n"

	.no_dead_strip	_mcp3911_write
.subsections_via_symbols
