	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dac7612_cmd_single
_dac7612_cmd_single:                    ## @dac7612_cmd_single
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_DAC7612_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	_DAC7612_ADDRESS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movslq	%ebx, %rdx
	shll	%cl, %ebx
	movq	(%r15), %rsi
	movl	%r14d, %ecx
	sarl	$8, %ecx
	orl	%eax, %ecx
	orl	%ebx, %ecx
	movl	%ecx, (%rsi)
	movzbl	%r14b, %eax
	movl	%eax, 4(%rsi)
	movq	8(%r15), %rax
	movl	%r14d, (%rax,%rdx,4)
	movl	20(%r15), %edi
	movl	$8, %edx
	callq	_spi_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	16(%r15), %edi
	movl	$1, %esi
	callq	_gpiod_set_value
	movl	16(%r15), %edi
	xorl	%esi, %esi
	callq	_gpiod_set_value
LBB0_2:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DAC7612_START,4,2              ## @DAC7612_START
	.comm	_DAC7612_ADDRESS,4,2            ## @DAC7612_ADDRESS
	.no_dead_strip	_dac7612_cmd_single
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dac7612_cmd_single
_dac7612_cmd_single:                    ; @dac7612_cmd_single
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _DAC7612_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DAC7612_START@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_BIT
Lloh3:
	adrp	x8, _DAC7612_ADDRESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DAC7612_ADDRESS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w21, w8
	orr	w9, w0, w20, asr #8
	orr	w8, w9, w8
	and	w9, w20, #0xff
	ldp	x1, x10, [x19]
	stp	w8, w9, [x1]
	str	w20, [x10, w21, sxtw #2]
	ldr	w0, [x19, #20]
	mov	w2, #8
	bl	_spi_write
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
	mov	w1, #1
	bl	_gpiod_set_value
	ldr	w0, [x19, #16]
	mov	w1, #0
	bl	_gpiod_set_value
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DAC7612_START,4,2              ; @DAC7612_START
	.comm	_DAC7612_ADDRESS,4,2            ; @DAC7612_ADDRESS
	.no_dead_strip	_dac7612_cmd_single
.subsections_via_symbols
