	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b53_spi_read_reg
_b53_spi_read_reg:                      ## @b53_spi_read_reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	%ecx, %r8d
	movq	%rdx, %rcx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	_B53_SPI_CMD_NORMAL@GOTPCREL(%rip), %rax
	movq	_B53_SPI_CMD_READ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movl	%edx, -16(%rbp)
	movl	%esi, -12(%rbp)
	leaq	-16(%rbp), %rsi
	movl	$2, %edx
	callq	_spi_write_then_read
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-8(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	addq	$16, %rsp
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_B53_SPI_CMD_NORMAL,4,2         ## @B53_SPI_CMD_NORMAL
	.comm	_B53_SPI_CMD_READ,4,2           ## @B53_SPI_CMD_READ
	.no_dead_strip	_b53_spi_read_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b53_spi_read_reg
_b53_spi_read_reg:                      ; @b53_spi_read_reg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	mov	x4, x3
	mov	x3, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x8, _B53_SPI_CMD_NORMAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B53_SPI_CMD_NORMAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _B53_SPI_CMD_READ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _B53_SPI_CMD_READ@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stp	w8, w1, [sp]
	mov	x1, sp
	mov	w2, #2
	bl	_spi_write_then_read
	ldr	x8, [sp, #8]
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, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_B53_SPI_CMD_NORMAL,4,2         ; @B53_SPI_CMD_NORMAL
	.comm	_B53_SPI_CMD_READ,4,2           ; @B53_SPI_CMD_READ
	.no_dead_strip	_b53_spi_read_reg
.subsections_via_symbols
