	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7768_setup
_ad7768_setup:                          ## @ad7768_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_AD7768_REG_SYNC_RESET@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$3, %edx
	callq	_ad7768_spi_reg_write
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_ad7768_spi_reg_write
	testl	%eax, %eax
	je	LBB0_2
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	8(%rbx), %rdi
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_devm_gpiod_get
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	%rbx, %rdi
	movl	$32000, %esi                    ## imm = 0x7D00
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ad7768_set_freq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AD7768_REG_SYNC_RESET,4,2      ## @AD7768_REG_SYNC_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adi,sync-in"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
	.no_dead_strip	_ad7768_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7768_setup
_ad7768_setup:                          ; @ad7768_setup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _AD7768_REG_SYNC_RESET@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AD7768_REG_SYNC_RESET@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w2, #3
	bl	_ad7768_spi_reg_write
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #2
	bl	_ad7768_spi_reg_write
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_devm_gpiod_get
	str	w0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_5:
	mov	x0, x19
	mov	w1, #32000
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ad7768_set_freq
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AD7768_REG_SYNC_RESET,4,2      ; @AD7768_REG_SYNC_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adi,sync-in"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
	.no_dead_strip	_ad7768_setup
.subsections_via_symbols
