	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan743x_ptp_perout_off
_lan743x_ptp_perout_off:                ## @lan743x_ptp_perout_off
	.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
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_lan743x_gpio_release
	movl	$-1, (%rbx)
LBB0_2:
	movl	4(%rbx), %edi
	testl	%edi, %edi
	js	LBB0_4
## %bb.3:
	callq	_PTP_CLOCK_TARGET_SEC_X
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$-65536, %edx                   ## imm = 0xFFFF0000
	callq	_lan743x_csr_write
	movl	4(%rbx), %edi
	callq	_PTP_CLOCK_TARGET_NS_X
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_lan743x_csr_write
	movq	_PTP_GENERAL_CONFIG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_lan743x_csr_read
	movl	%eax, %r14d
	movl	4(%rbx), %edi
	callq	_PTP_GENERAL_CONFIG_RELOAD_ADD_X_
	orl	%eax, %r14d
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_lan743x_csr_write
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_lan743x_ptp_release_event_ch
	movl	$-1, 4(%rbx)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTP_GENERAL_CONFIG,4,2         ## @PTP_GENERAL_CONFIG
	.no_dead_strip	_lan743x_ptp_perout_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan743x_ptp_perout_off
_lan743x_ptp_perout_off:                ; @lan743x_ptp_perout_off
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w1, [x0]
	tbnz	w1, #31, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_lan743x_gpio_release
	mov	w8, #-1
	str	w8, [x19]
LBB0_2:
	ldr	w0, [x19, #4]
	tbnz	w0, #31, LBB0_4
; %bb.3:
	bl	_PTP_CLOCK_TARGET_SEC_X
	mov	x1, x0
	mov	x0, x19
	mov	w2, #-65536
	bl	_lan743x_csr_write
	ldr	w0, [x19, #4]
	bl	_PTP_CLOCK_TARGET_NS_X
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_lan743x_csr_write
Lloh0:
	adrp	x21, _PTP_GENERAL_CONFIG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PTP_GENERAL_CONFIG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_lan743x_csr_read
	mov	x20, x0
	ldr	w0, [x19, #4]
	bl	_PTP_GENERAL_CONFIG_RELOAD_ADD_X_
	orr	w2, w0, w20
	ldr	w1, [x21]
	mov	x0, x19
	bl	_lan743x_csr_write
	ldr	w1, [x19, #4]
	mov	x0, x19
	bl	_lan743x_ptp_release_event_ch
	mov	w8, #-1
	str	w8, [x19, #4]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PTP_GENERAL_CONFIG,4,2         ; @PTP_GENERAL_CONFIG
	.no_dead_strip	_lan743x_ptp_perout_off
.subsections_via_symbols
