	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ene_rx_read_hw_pointer
_ene_rx_read_hw_pointer:                ## @ene_rx_read_hw_pointer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_ENE_FW_RX_POINTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ene_read_reg
	movl	%eax, %esi
	jmp	LBB0_4
LBB0_2:
	movq	_ENE_FW2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ene_read_reg
	movq	_ENE_FW2_BUF_WPTR@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_ENE_FW_PACKET_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_4:
	movl	%esi, (%rbx)
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dbg_verbose                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENE_FW_RX_POINTER,4,2          ## @ENE_FW_RX_POINTER
	.comm	_ENE_FW2,4,2                    ## @ENE_FW2
	.comm	_ENE_FW2_BUF_WPTR,4,2           ## @ENE_FW2_BUF_WPTR
	.comm	_ENE_FW_PACKET_SIZE,4,2         ## @ENE_FW_PACKET_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RB: HW write pointer: %02x, driver read pointer: %02x"

	.no_dead_strip	_ene_rx_read_hw_pointer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ene_rx_read_hw_pointer
_ene_rx_read_hw_pointer:                ; @ene_rx_read_hw_pointer
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENE_FW_RX_POINTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENE_FW_RX_POINTER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ene_read_reg
	mov	x1, x0
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _ENE_FW2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENE_FW2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ene_read_reg
Lloh6:
	adrp	x8, _ENE_FW2_BUF_WPTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENE_FW2_BUF_WPTR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _ENE_FW_PACKET_SIZE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ENE_FW_PACKET_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w8, w0
	csel	w1, w9, wzr, eq
LBB0_3:
	str	w1, [x19]
	ldr	w2, [x19, #4]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dbg_verbose
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ENE_FW_RX_POINTER,4,2          ; @ENE_FW_RX_POINTER
	.comm	_ENE_FW2,4,2                    ; @ENE_FW2
	.comm	_ENE_FW2_BUF_WPTR,4,2           ; @ENE_FW2_BUF_WPTR
	.comm	_ENE_FW_PACKET_SIZE,4,2         ; @ENE_FW_PACKET_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RB: HW write pointer: %02x, driver read pointer: %02x"

	.no_dead_strip	_ene_rx_read_hw_pointer
.subsections_via_symbols
