	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sja1105_hwtstamp_get
_sja1105_hwtstamp_get:                  ## @sja1105_hwtstamp_get
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movl	%esi, %eax
	movq	(%rdi), %rsi
	movq	$0, -16(%rbp)
	movq	8(%rsi), %rcx
	cltq
	cmpq	$0, (%rcx,%rax,8)
	jne	LBB0_1
## %bb.2:
	movq	_HWTSTAMP_TX_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_HWTSTAMP_TX_ON@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	_SJA1105_HWTS_RX_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	_HWTSTAMP_FILTER_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_HWTSTAMP_FILTER_PTP_V2_L2_EVENT@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	(%rbx), %edi
	leaq	-24(%rbp), %rsi
	movl	$16, %edx
	callq	_copy_to_user
	movq	_EFAULT@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	xorl	%edx, %edx
	testq	%rax, %rax
	cmovel	%edx, %ecx
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HWTSTAMP_TX_ON,4,2             ## @HWTSTAMP_TX_ON
	.comm	_HWTSTAMP_TX_OFF,4,2            ## @HWTSTAMP_TX_OFF
	.comm	_SJA1105_HWTS_RX_EN,4,2         ## @SJA1105_HWTS_RX_EN
	.comm	_HWTSTAMP_FILTER_PTP_V2_L2_EVENT,4,2 ## @HWTSTAMP_FILTER_PTP_V2_L2_EVENT
	.comm	_HWTSTAMP_FILTER_NONE,4,2       ## @HWTSTAMP_FILTER_NONE
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_sja1105_hwtstamp_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sja1105_hwtstamp_get
_sja1105_hwtstamp_get:                  ; @sja1105_hwtstamp_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	ldr	x8, [x0]
	str	xzr, [sp, #8]
	ldr	x9, [x8, #8]
	ldr	x9, [x9, w1, sxtw #3]
Lloh0:
	adrp	x10, _HWTSTAMP_TX_OFF@GOTPAGE
Lloh1:
	ldr	x10, [x10, _HWTSTAMP_TX_OFF@GOTPAGEOFF]
Lloh2:
	adrp	x11, _HWTSTAMP_TX_ON@GOTPAGE
Lloh3:
	ldr	x11, [x11, _HWTSTAMP_TX_ON@GOTPAGEOFF]
	cmp	x9, #0
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
	str	w9, [sp, #4]
Lloh4:
	adrp	x9, _SJA1105_HWTS_RX_EN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SJA1105_HWTS_RX_EN@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x9]
	mov	x1, x8
	bl	_test_bit
Lloh7:
	adrp	x8, _HWTSTAMP_FILTER_NONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HWTSTAMP_FILTER_NONE@GOTPAGEOFF]
Lloh9:
	adrp	x9, _HWTSTAMP_FILTER_PTP_V2_L2_EVENT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HWTSTAMP_FILTER_PTP_V2_L2_EVENT@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [sp]
	ldr	w0, [x19]
	mov	x1, sp
	mov	w2, #16
	bl	_copy_to_user
Lloh11:
	adrp	x8, _EFAULT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HWTSTAMP_TX_ON,4,2             ; @HWTSTAMP_TX_ON
	.comm	_HWTSTAMP_TX_OFF,4,2            ; @HWTSTAMP_TX_OFF
	.comm	_SJA1105_HWTS_RX_EN,4,2         ; @SJA1105_HWTS_RX_EN
	.comm	_HWTSTAMP_FILTER_PTP_V2_L2_EVENT,4,2 ; @HWTSTAMP_FILTER_PTP_V2_L2_EVENT
	.comm	_HWTSTAMP_FILTER_NONE,4,2       ; @HWTSTAMP_FILTER_NONE
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_sja1105_hwtstamp_get
.subsections_via_symbols
