	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm6996_write_gpio_reg
_adm6996_write_gpio_reg:                ## @adm6996_write_gpio_reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movl	%esi, %eax
	shrl	$3, %eax
	orl	$160, %eax
	movl	%eax, -32(%rbp)
	shll	$5, %esi
	movl	%edx, %eax
	sarl	$11, %eax
	orl	%esi, %eax
	movl	%eax, -28(%rbp)
	movl	%edx, %eax
	sarl	$3, %eax
	movl	%eax, -24(%rbp)
	shll	$5, %edx
	movl	%edx, -20(%rbp)
	movl	8(%rdi), %edi
	xorl	%esi, %esi
	callq	_gpio_direction_output
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	callq	_gpio_direction_output
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_gpio_direction_output
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$27, %ecx
	callq	_adm6996_gpio_write
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_adm6996_gpio_adclk
	movl	8(%rbx), %edi
	callq	_gpio_direction_input
	movl	4(%rbx), %edi
	callq	_gpio_direction_input
	movl	(%rbx), %edi
	callq	_gpio_direction_input
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_adm6996_write_gpio_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm6996_write_gpio_reg
_adm6996_write_gpio_reg:                ; @adm6996_write_gpio_reg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	w8, #160
	orr	w8, w8, w1, lsr #3
	asr	w9, w2, #11
	orr	w9, w9, w1, lsl #5
	stp	w8, w9, [sp, #8]
	asr	w8, w2, #3
	lsl	w9, w2, #5
	stp	w8, w9, [sp, #16]
	ldr	w0, [x0, #8]
	mov	w1, #0
	bl	_gpio_direction_output
	ldr	w0, [x19, #4]
	mov	w1, #0
	bl	_gpio_direction_output
	ldr	w0, [x19]
	mov	w1, #0
	bl	_gpio_direction_output
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #1
	mov	w3, #27
	bl	_adm6996_gpio_write
	mov	x0, x19
	mov	w1, #2
	bl	_adm6996_gpio_adclk
	ldr	w0, [x19, #8]
	bl	_gpio_direction_input
	ldr	w0, [x19, #4]
	bl	_gpio_direction_input
	ldr	w0, [x19]
	bl	_gpio_direction_input
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_adm6996_write_gpio_reg
.subsections_via_symbols
