	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl127x_prepare_read
_wl127x_prepare_read:                   ## @wl127x_prepare_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rax
	movq	_CHIP_ID_128X_PG20@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	_RX_MEM_BLOCK_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movq	8(%rdi), %rax
	shll	$8, %esi
	movslq	%esi, %r15
	movl	(%rax), %edi
	callq	_le32_to_cpu
	leaq	(%rax,%r15), %rcx
	movq	(%r14), %rdx
	movq	%rcx, (%rdx)
	addq	%r15, %rax
	addq	$4, %rax
	movq	%rax, 8(%rdx)
	movq	_WL1271_SLV_REG_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$16, %ecx
	xorl	%r8d, %r8d
	callq	_wlcore_write
	testl	%eax, %eax
	js	LBB0_3
LBB0_2:
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_ID_128X_PG20,8,3          ## @CHIP_ID_128X_PG20
	.comm	_RX_MEM_BLOCK_MASK,4,2          ## @RX_MEM_BLOCK_MASK
	.comm	_WL1271_SLV_REG_DATA,4,2        ## @WL1271_SLV_REG_DATA
	.no_dead_strip	_wl127x_prepare_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl127x_prepare_read
_wl127x_prepare_read:                   ; @wl127x_prepare_read
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _CHIP_ID_128X_PG20@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHIP_ID_128X_PG20@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
	ldp	x20, x8, [x0]
Lloh3:
	adrp	x9, _RX_MEM_BLOCK_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RX_MEM_BLOCK_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w9, w9, w1
	lsl	w21, w9, #8
	ldr	w0, [x8]
	bl	_le32_to_cpu
	add	x8, x0, w21, sxtw
	ldr	x2, [x20]
	add	x9, x8, #4
	stp	x8, x9, [x2]
Lloh6:
	adrp	x8, _WL1271_SLV_REG_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WL1271_SLV_REG_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w3, #16
	mov	w4, #0
	bl	_wlcore_write
	tbnz	w0, #31, LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_ID_128X_PG20,8,3          ; @CHIP_ID_128X_PG20
	.comm	_RX_MEM_BLOCK_MASK,4,2          ; @RX_MEM_BLOCK_MASK
	.comm	_WL1271_SLV_REG_DATA,4,2        ; @WL1271_SLV_REG_DATA
	.no_dead_strip	_wl127x_prepare_read
.subsections_via_symbols
