	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ene_rx_restore_hw_buffer
_ene_rx_restore_hw_buffer:              ## @ene_rx_restore_hw_buffer
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, 16(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	_ENE_FW_SAMPLE_BUFFER@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movzbl	(%rdi), %edx
	callq	_ene_write_reg
	movq	(%r14), %rsi
	incq	%rsi
	movl	(%rbx), %edx
	sarl	$8, %edx
	movq	%rbx, %rdi
	callq	_ene_write_reg
	movq	(%r14), %rsi
	addq	$2, %rsi
	movl	4(%rbx), %edx
	movq	%rbx, %rdi
	callq	_ene_write_reg
	movq	(%r14), %rsi
	addq	$3, %rsi
	movzbl	8(%rbx), %edx
	movq	%rbx, %rdi
	callq	_ene_write_reg
	movq	(%r14), %rsi
	addq	$4, %rsi
	movl	8(%rbx), %edx
	sarl	$8, %edx
	movq	%rbx, %rdi
	callq	_ene_write_reg
	movq	(%r14), %rsi
	addq	$5, %rsi
	movl	12(%rbx), %edx
	movq	%rbx, %rdi
	callq	_ene_write_reg
	movq	_ENE_FW1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ENE_FW1_EXTRA_BUF_HND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ene_clear_reg_mask             ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENE_FW_SAMPLE_BUFFER,8,3       ## @ENE_FW_SAMPLE_BUFFER
	.comm	_ENE_FW1,4,2                    ## @ENE_FW1
	.comm	_ENE_FW1_EXTRA_BUF_HND,4,2      ## @ENE_FW1_EXTRA_BUF_HND
	.no_dead_strip	_ene_rx_restore_hw_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ene_rx_restore_hw_buffer
_ene_rx_restore_hw_buffer:              ; @ene_rx_restore_hw_buffer
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x20, _ENE_FW_SAMPLE_BUFFER@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ENE_FW_SAMPLE_BUFFER@GOTPAGEOFF]
	ldr	x1, [x20]
	ldrb	w2, [x0]
	bl	_ene_write_reg
	ldr	x8, [x20]
	add	x1, x8, #1
	ldr	w8, [x19]
	asr	w2, w8, #8
	mov	x0, x19
	bl	_ene_write_reg
	ldr	x8, [x20]
	add	x1, x8, #2
	ldr	w2, [x19, #4]
	mov	x0, x19
	bl	_ene_write_reg
	ldr	x8, [x20]
	add	x1, x8, #3
	ldrb	w2, [x19, #8]
	mov	x0, x19
	bl	_ene_write_reg
	ldr	x8, [x20]
	add	x1, x8, #4
	ldr	w8, [x19, #8]
	asr	w2, w8, #8
	mov	x0, x19
	bl	_ene_write_reg
	ldr	x8, [x20]
	add	x1, x8, #5
	ldr	w2, [x19, #12]
	mov	x0, x19
	bl	_ene_write_reg
Lloh2:
	adrp	x8, _ENE_FW1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENE_FW1@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _ENE_FW1_EXTRA_BUF_HND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENE_FW1_EXTRA_BUF_HND@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ene_clear_reg_mask
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ENE_FW_SAMPLE_BUFFER,8,3       ; @ENE_FW_SAMPLE_BUFFER
	.comm	_ENE_FW1,4,2                    ; @ENE_FW1
	.comm	_ENE_FW1_EXTRA_BUF_HND,4,2      ; @ENE_FW1_EXTRA_BUF_HND
	.no_dead_strip	_ene_rx_restore_hw_buffer
.subsections_via_symbols
