	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_get_rx_hwtstamp
_stmmac_get_rx_hwtstamp:                ## @stmmac_get_rx_hwtstamp
	.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
	movl	$0, -28(%rbp)
	cmpl	$0, 16(%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rcx, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_3
## %bb.2:
	cmpq	$0, (%rax)
	movq	%rsi, %r15
	je	LBB0_4
LBB0_3:
	movq	%rdx, %r15
LBB0_4:
	movl	4(%rbx), %ecx
	movq	%rbx, %rdi
	callq	_stmmac_get_rx_timestamp_status
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	4(%rbx), %edx
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_stmmac_get_timestamp
	movl	(%rbx), %edi
	movl	-28(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	%r14, %rdi
	callq	_skb_hwtstamps
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	-28(%rbp), %edi
	callq	_ns_to_ktime
	movl	%eax, (%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_dbg                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get valid RX hw timestamp %llu\n"

L_.str.1:                               ## @.str.1
	.asciz	"cannot get RX hw timestamp\n"

	.no_dead_strip	_stmmac_get_rx_hwtstamp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_get_rx_hwtstamp
_stmmac_get_rx_hwtstamp:                ; @stmmac_get_rx_hwtstamp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	str	wzr, [sp, #12]
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x19, x3
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_3
; %bb.2:
	ldr	x8, [x8]
	mov	x21, x1
	cbz	x8, LBB0_4
LBB0_3:
	mov	x21, x2
LBB0_4:
	ldr	w3, [x20, #4]
	mov	x0, x20
	bl	_stmmac_get_rx_timestamp_status
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w2, [x20, #4]
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x21
	bl	_stmmac_get_timestamp
	ldr	w0, [x20]
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_dbg
	mov	x0, x19
	bl	_skb_hwtstamps
	mov	x19, x0
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [sp, #12]
	bl	_ns_to_ktime
	str	w0, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_netdev_dbg
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get valid RX hw timestamp %llu\n"

l_.str.1:                               ; @.str.1
	.asciz	"cannot get RX hw timestamp\n"

	.no_dead_strip	_stmmac_get_rx_hwtstamp
.subsections_via_symbols
