	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lan743x_ptp_ioctl              ## -- Begin function lan743x_ptp_ioctl
	.p2align	4, 0x90
_lan743x_ptp_ioctl:                     ## @lan743x_ptp_ioctl
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movl	(%rbx), %esi
	leaq	-56(%rbp), %rdi
	movl	$8, %edx
	callq	_copy_from_user
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	callq	_netif_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_26
LBB0_5:
	movl	-56(%rbp), %r8d
	testl	%r8d, %r8d
	je	LBB0_7
## %bb.6:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	callq	_netif_warn
LBB0_7:
	movl	-52(%rbp), %r8d
	cmpl	$130, %r8d
	je	LBB0_13
## %bb.8:
	cmpl	$129, %r8d
	je	LBB0_16
## %bb.9:
	cmpl	$128, %r8d
	jne	LBB0_19
## %bb.10:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_LAN743X_MAX_TX_CHANNELS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_21
## %bb.11:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	addq	%rbx, %rdi
	movl	$1, %r13d
	movl	$1, %esi
	movl	$1, %edx
	callq	_lan743x_tx_set_timestamping_mode
	incq	%r12
	movslq	(%r14), %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_12
	jmp	LBB0_24
LBB0_13:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_LAN743X_MAX_TX_CHANNELS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_23
## %bb.14:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	addq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_lan743x_tx_set_timestamping_mode
	incq	%r12
	movslq	(%r14), %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_15
	jmp	LBB0_24
LBB0_16:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_LAN743X_MAX_TX_CHANNELS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_23
## %bb.17:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	addq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_lan743x_tx_set_timestamping_mode
	incq	%r12
	movslq	(%r14), %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_18
	jmp	LBB0_24
LBB0_19:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	callq	_netif_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_25
## %bb.20:
	negl	%eax
	jmp	LBB0_26
LBB0_23:
	xorl	%r13d, %r13d
	jmp	LBB0_24
LBB0_21:
	movl	$1, %r13d
LBB0_24:
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_lan743x_ptp_set_sync_ts_insert
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_25:
	movl	(%rbx), %edi
	leaq	-56(%rbp), %rsi
	movl	$8, %edx
	callq	_copy_to_user
	movq	%rax, %rcx
	movq	_EFAULT@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	xorl	%edx, %edx
	testq	%rcx, %rcx
	cmovel	%edx, %eax
LBB0_26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SIOCSHWTSTAMP, ifr == NULL\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EFAULT,4,2                     ## @EFAULT
L_.str.1:                               ## @.str.1
	.asciz	"ignoring hwtstamp_config.flags == 0x%08X, expected 0\n"

	.comm	_LAN743X_MAX_TX_CHANNELS,4,2    ## @LAN743X_MAX_TX_CHANNELS
L_.str.2:                               ## @.str.2
	.asciz	"  tx_type = %d, UNKNOWN\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lan743x_ptp_ioctl              ; -- Begin function lan743x_ptp_ioctl
	.p2align	2
_lan743x_ptp_ioctl:                     ; @lan743x_ptp_ioctl
	.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, x1
	bl	_netdev_priv
	mov	x20, x0
	cbz	x19, LBB0_3
; %bb.1:
	ldr	w1, [x19]
	add	x0, sp, #8
	mov	w2, #8
	bl	_copy_from_user
	cbz	x0, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _drv@GOTPAGE
Lloh3:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x20]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netif_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
LBB0_5:
	neg	w0, w8
LBB0_6:
	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_7:
	ldr	w4, [sp, #8]
	cbz	w4, LBB0_9
; %bb.8:
Lloh9:
	adrp	x8, _drv@GOTPAGE
Lloh10:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x20]
Lloh12:
	adrp	x3, l_.str.1@PAGE
Lloh13:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netif_warn
LBB0_9:
	ldr	w4, [sp, #12]
	cmp	w4, #130
	b.eq	LBB0_15
; %bb.10:
	cmp	w4, #129
	b.eq	LBB0_18
; %bb.11:
	cmp	w4, #128
	b.ne	LBB0_24
; %bb.12:
Lloh14:
	adrp	x22, _LAN743X_MAX_TX_CHANNELS@GOTPAGE
Lloh15:
	ldr	x22, [x22, _LAN743X_MAX_TX_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.13:
	mov	x23, #0
	mov	x24, #0
	mov	w21, #1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x0, x8, x23
	mov	w1, #1
	mov	w2, #1
	bl	_lan743x_tx_set_timestamping_mode
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #4
	cmp	x24, x8
	b.lt	LBB0_14
	b	LBB0_22
LBB0_15:
Lloh16:
	adrp	x21, _LAN743X_MAX_TX_CHANNELS@GOTPAGE
Lloh17:
	ldr	x21, [x21, _LAN743X_MAX_TX_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.16:
	mov	x22, #0
	mov	x23, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x0, x8, x22
	mov	w1, #0
	mov	w2, #0
	bl	_lan743x_tx_set_timestamping_mode
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_17
	b	LBB0_21
LBB0_18:
Lloh18:
	adrp	x21, _LAN743X_MAX_TX_CHANNELS@GOTPAGE
Lloh19:
	ldr	x21, [x21, _LAN743X_MAX_TX_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.19:
	mov	x22, #0
	mov	x23, #0
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x0, x8, x22
	mov	w1, #1
	mov	w2, #0
	bl	_lan743x_tx_set_timestamping_mode
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_20
LBB0_21:
	mov	w21, #0
LBB0_22:
	mov	x0, x20
	mov	x1, x21
	bl	_lan743x_ptp_set_sync_ts_insert
LBB0_23:
	ldr	w0, [x19]
	add	x1, sp, #8
	mov	w2, #8
	bl	_copy_to_user
Lloh20:
	adrp	x8, _EFAULT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, eq
	b	LBB0_6
LBB0_24:
Lloh23:
	adrp	x8, _drv@GOTPAGE
Lloh24:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	w2, [x20]
Lloh26:
	adrp	x3, l_.str.2@PAGE
Lloh27:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_netif_warn
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cbnz	w8, LBB0_5
	b	LBB0_23
LBB0_25:
	mov	w21, #1
	b	LBB0_22
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SIOCSHWTSTAMP, ifr == NULL\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EFAULT,4,2                     ; @EFAULT
l_.str.1:                               ; @.str.1
	.asciz	"ignoring hwtstamp_config.flags == 0x%08X, expected 0\n"

	.comm	_LAN743X_MAX_TX_CHANNELS,4,2    ; @LAN743X_MAX_TX_CHANNELS
l_.str.2:                               ; @.str.2
	.asciz	"  tx_type = %d, UNKNOWN\n"

.subsections_via_symbols
