	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __sca3000_unlock_reg_lock
___sca3000_unlock_reg_lock:             ## @__sca3000_unlock_reg_lock
	.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
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movabsq	$4294967298, %rax               ## imm = 0x100000002
	movq	%rax, -80(%rbp)
	movq	(%rdi), %rcx
	movq	%rcx, -72(%rbp)
	movq	%rax, -64(%rbp)
	leaq	8(%rcx), %rax
	movq	%rax, -56(%rbp)
	movq	$2, -48(%rbp)
	addq	$16, %rcx
	movq	%rcx, -40(%rbp)
	movq	_SCA3000_REG_UNLOCK_ADDR@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_SCA3000_WRITE_REG
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	$0, 4(%rcx)
	movl	(%r14), %edi
	callq	_SCA3000_WRITE_REG
	movq	(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movl	$80, 12(%rcx)
	movl	(%r14), %edi
	callq	_SCA3000_WRITE_REG
	movq	(%rbx), %rcx
	movl	%eax, 16(%rcx)
	movl	$160, 20(%rcx)
	movl	8(%rbx), %ebx
	leaq	-80(%rbp), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_spi_sync_transfer
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SCA3000_REG_UNLOCK_ADDR,4,2    ## @SCA3000_REG_UNLOCK_ADDR
	.no_dead_strip	___sca3000_unlock_reg_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function __sca3000_unlock_reg_lock
lCPI0_0:
	.long	2                               ; 0x2
	.long	1                               ; 0x1
lCPI0_1:
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
___sca3000_unlock_reg_lock:             ; @__sca3000_unlock_reg_lock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
	ldr	x8, [x0]
	str	x8, [sp, #16]
	str	d0, [sp, #24]
	add	x9, x8, #8
	str	x9, [sp, #32]
Lloh5:
	adrp	x9, lCPI0_1@PAGE
Lloh6:
	ldr	d0, [x9, lCPI0_1@PAGEOFF]
	str	d0, [sp, #40]
	add	x8, x8, #16
	str	x8, [sp, #48]
Lloh7:
	adrp	x20, _SCA3000_REG_UNLOCK_ADDR@GOTPAGE
Lloh8:
	ldr	x20, [x20, _SCA3000_REG_UNLOCK_ADDR@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_SCA3000_WRITE_REG
	ldr	x8, [x19]
	stp	w0, wzr, [x8]
	ldr	w0, [x20]
	bl	_SCA3000_WRITE_REG
	ldr	x8, [x19]
	mov	w9, #80
	stp	w0, w9, [x8, #8]
	ldr	w0, [x20]
	bl	_SCA3000_WRITE_REG
	ldr	x8, [x19]
	mov	w9, #160
	stp	w0, w9, [x8, #16]
	ldr	w19, [x19, #8]
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_spi_sync_transfer
	ldur	x8, [x29, #-24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SCA3000_REG_UNLOCK_ADDR,4,2    ; @SCA3000_REG_UNLOCK_ADDR
	.no_dead_strip	___sca3000_unlock_reg_lock
.subsections_via_symbols
