	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sja1105_hwtstamp_set
_sja1105_hwtstamp_set:                  ## @sja1105_hwtstamp_set
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	8(%rdi), %r14
	movl	(%rdx), %esi
	leaq	-48(%rbp), %rdi
	movl	$8, %edx
	callq	_copy_from_user
	testq	%rax, %rax
	je	LBB0_1
LBB0_12:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_13:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	-48(%rbp), %eax
	cmpl	$129, %eax
	je	LBB0_2
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_15
## %bb.4:
	movl	$1, %eax
	jmp	LBB0_5
LBB0_2:
	xorl	%eax, %eax
LBB0_5:
	movq	8(%r14), %rcx
	movslq	%r12d, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	-44(%rbp), %r12d
	xorl	%ebx, %ebx
	cmpl	$130, %r12d
	setne	%bl
	movq	_SJA1105_HWTS_RX_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	cmpl	%ebx, %eax
	je	LBB0_10
## %bb.6:
	movq	_SJA1105_HWTS_RX_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_sja1105_change_rxtstamping
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	cmpl	$130, %r12d
	movq	_SJA1105_HWTS_RX_EN@GOTPCREL(%rip), %rax
	je	LBB0_10
## %bb.9:
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
LBB0_10:
	movl	(%r15), %edi
	leaq	-48(%rbp), %rsi
	movl	$8, %edx
	callq	_copy_to_user
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_15:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_7:
	movl	%eax, %ebx
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_SJA1105_HWTS_RX_EN,4,2         ## @SJA1105_HWTS_RX_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to change RX timestamping: %d\n"

	.no_dead_strip	_sja1105_hwtstamp_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sja1105_hwtstamp_set
_sja1105_hwtstamp_set:                  ; @sja1105_hwtstamp_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x20, [x0, #8]
	ldr	w1, [x2]
	add	x0, sp, #8
	mov	w2, #8
	bl	_copy_from_user
	cbz	x0, LBB0_4
LBB0_1:
Lloh0:
	adrp	x8, _EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_3:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	ldr	w8, [sp, #8]
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.5:
	cmp	w8, #128
	b.ne	LBB0_14
; %bb.6:
	mov	w8, #1
	b	LBB0_8
LBB0_7:
	mov	w8, #0
LBB0_8:
	ldr	x9, [x20, #8]
	str	w8, [x9, w22, sxtw #2]
	ldr	w24, [sp, #12]
	cmp	w24, #130
	cset	w22, ne
Lloh2:
	adrp	x23, _SJA1105_HWTS_RX_EN@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SJA1105_HWTS_RX_EN@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x20
	bl	_test_bit
	cmp	w0, w22
	b.eq	LBB0_12
; %bb.9:
	ldr	w0, [x23]
	mov	x1, x20
	bl	_clear_bit
	mov	x0, x20
	mov	x1, x22
	bl	_sja1105_change_rxtstamping
	tbnz	w0, #31, LBB0_15
; %bb.10:
	cmp	w24, #130
	b.eq	LBB0_12
; %bb.11:
	ldr	w0, [x23]
	mov	x1, x20
	bl	_set_bit
LBB0_12:
	ldr	w0, [x19]
	add	x1, sp, #8
	mov	w2, #8
	bl	_copy_to_user
	cbnz	x0, LBB0_1
; %bb.13:
	mov	w22, #0
	b	LBB0_3
LBB0_14:
Lloh4:
	adrp	x8, _ERANGE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
	b	LBB0_2
LBB0_15:
	mov	x22, x0
	ldr	w0, [x21]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_SJA1105_HWTS_RX_EN,4,2         ; @SJA1105_HWTS_RX_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to change RX timestamping: %d\n"

	.no_dead_strip	_sja1105_hwtstamp_set
.subsections_via_symbols
