	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rb4xx_cpld_read                ## -- Begin function rb4xx_cpld_read
	.p2align	4, 0x90
_rb4xx_cpld_read:                       ## @rb4xx_cpld_read
	.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	$80, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leaq	_rb4xx_cpld_read.cmd(%rip), %rax
	movq	%rax, -80(%rbp)
	movl	$2, -72(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	%esi, -48(%rbp)
	movq	%rdi, -40(%rbp)
	movq	_rb4xx_cpld@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_1
## %bb.2:
	leaq	-88(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_spi_message_init
	leaq	-80(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_spi_message_add_tail
	leaq	-56(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_spi_message_add_tail
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_spi_sync
	jmp	LBB0_3
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$80, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_rb4xx_cpld_read.cmd:                   ## @rb4xx_cpld_read.cmd
	.asciz	"\200"

	.comm	_rb4xx_cpld,8,3                 ## @rb4xx_cpld
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rb4xx_cpld_read                ; -- Begin function rb4xx_cpld_read
	.p2align	2
_rb4xx_cpld_read:                       ; @rb4xx_cpld_read
	.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
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, _rb4xx_cpld_read.cmd@PAGE
Lloh4:
	add	x8, x8, _rb4xx_cpld_read.cmd@PAGEOFF
	str	x8, [sp, #8]
	mov	w8, #2
	str	w8, [sp, #16]
	stp	xzr, xzr, [sp, #24]
	str	w1, [sp, #40]
	str	x0, [sp, #48]
Lloh5:
	adrp	x19, _rb4xx_cpld@GOTPAGE
Lloh6:
	ldr	x19, [x19, _rb4xx_cpld@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, sp
	bl	_spi_message_init
	add	x20, sp, #8
	add	x0, sp, #8
	mov	x1, sp
	bl	_spi_message_add_tail
	add	x0, x20, #24
	mov	x1, sp
	bl	_spi_message_add_tail
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, sp
	bl	_spi_sync
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldur	x8, [x29, #-24]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_rb4xx_cpld_read.cmd:                   ; @rb4xx_cpld_read.cmd
	.asciz	"\200"

	.comm	_rb4xx_cpld,8,3                 ; @rb4xx_cpld
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
