	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b53_spi_write32
_b53_spi_write32:                       ## @b53_spi_write32
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_b53_prepare_reg_access
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_B53_SPI_CMD_NORMAL@GOTPCREL(%rip), %rax
	movq	_B53_SPI_CMD_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -64(%rbp)
	movl	%r15d, -60(%rbp)
	leaq	-56(%rbp), %rsi
	movl	%r14d, %edi
	callq	_put_unaligned_le32
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$24, %edx
	callq	_spi_write
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_B53_SPI_CMD_NORMAL,4,2         ## @B53_SPI_CMD_NORMAL
	.comm	_B53_SPI_CMD_WRITE,4,2          ## @B53_SPI_CMD_WRITE
	.no_dead_strip	_b53_spi_write32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b53_spi_write32
_b53_spi_write32:                       ; @b53_spi_write32
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x3
	mov	x21, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x19, [x0]
	mov	x0, x19
	bl	_b53_prepare_reg_access
	cbnz	w0, LBB0_2
; %bb.1:
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_WRITE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _B53_SPI_CMD_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stp	w8, w21, [sp]
	mov	x8, sp
	add	x1, x8, #8
	mov	x0, x20
	bl	_put_unaligned_le32
	mov	x1, sp
	mov	x0, x19
	mov	w2, #24
	bl	_spi_write
LBB0_2:
	ldr	x8, [sp, #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_4
; %bb.3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_B53_SPI_CMD_NORMAL,4,2         ; @B53_SPI_CMD_NORMAL
	.comm	_B53_SPI_CMD_WRITE,4,2          ; @B53_SPI_CMD_WRITE
	.no_dead_strip	_b53_spi_write32
.subsections_via_symbols
