	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6352_config_eventcap
_mv88e6352_config_eventcap:             ## @mv88e6352_config_eventcap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %eax
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_MV88E6XXX_TAI_CFG_CAP_OVERWRITE@GOTPCREL(%rip), %rcx
	movq	_MV88E6XXX_TAI_CFG_CAP_CTR_START@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%edx, (%rdi)
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_MV88E6XXX_TAI_CFG_EVREQ_FALLING@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, (%rbx)
LBB0_2:
	orl	4(%rbx), %edx
	movq	_MV88E6XXX_TAI_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mv88e6xxx_tai_write
	testl	%eax, %eax
	je	LBB0_3
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_PTP_CLOCK_PPS@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_6
## %bb.4:
	movq	_MV88E6XXX_TAI_EVENT_STATUS_CAP_TRIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_5
LBB0_6:
	movq	_PTP_CLOCK_EXTTS@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	cmpl	%r14d, (%rax)
	jne	LBB0_7
LBB0_5:
	movq	_MV88E6XXX_TAI_EVENT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mv88e6xxx_tai_write            ## TAILCALL
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MV88E6XXX_TAI_CFG_CAP_OVERWRITE,4,2 ## @MV88E6XXX_TAI_CFG_CAP_OVERWRITE
	.comm	_MV88E6XXX_TAI_CFG_CAP_CTR_START,4,2 ## @MV88E6XXX_TAI_CFG_CAP_CTR_START
	.comm	_MV88E6XXX_TAI_CFG_EVREQ_FALLING,4,2 ## @MV88E6XXX_TAI_CFG_EVREQ_FALLING
	.comm	_MV88E6XXX_TAI_CFG,4,2          ## @MV88E6XXX_TAI_CFG
	.comm	_PTP_CLOCK_PPS,4,2              ## @PTP_CLOCK_PPS
	.comm	_MV88E6XXX_TAI_EVENT_STATUS_CAP_TRIG,4,2 ## @MV88E6XXX_TAI_EVENT_STATUS_CAP_TRIG
	.comm	_PTP_CLOCK_EXTTS,4,2            ## @PTP_CLOCK_EXTTS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MV88E6XXX_TAI_EVENT_STATUS,4,2 ## @MV88E6XXX_TAI_EVENT_STATUS
	.no_dead_strip	_mv88e6352_config_eventcap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6352_config_eventcap
_mv88e6352_config_eventcap:             ; @mv88e6352_config_eventcap
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MV88E6XXX_TAI_CFG_CAP_OVERWRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MV88E6XXX_TAI_CFG_CAP_OVERWRITE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MV88E6XXX_TAI_CFG_CAP_CTR_START@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MV88E6XXX_TAI_CFG_CAP_CTR_START@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0]
	cbnz	w2, LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, _MV88E6XXX_TAI_CFG_EVREQ_FALLING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MV88E6XXX_TAI_CFG_EVREQ_FALLING@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_2:
	ldr	w9, [x19, #4]
	orr	w2, w9, w8
Lloh9:
	adrp	x8, _MV88E6XXX_TAI_CFG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MV88E6XXX_TAI_CFG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mv88e6xxx_tai_write
	cbz	w0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh12:
	adrp	x8, _PTP_CLOCK_PPS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PTP_CLOCK_PPS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_6
; %bb.5:
Lloh15:
	adrp	x8, _MV88E6XXX_TAI_EVENT_STATUS_CAP_TRIG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MV88E6XXX_TAI_EVENT_STATUS_CAP_TRIG@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	b	LBB0_8
LBB0_6:
Lloh18:
	adrp	x8, _PTP_CLOCK_EXTTS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PTP_CLOCK_EXTTS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_9
; %bb.7:
	mov	w2, #0
LBB0_8:
Lloh21:
	adrp	x8, _MV88E6XXX_TAI_EVENT_STATUS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MV88E6XXX_TAI_EVENT_STATUS@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mv88e6xxx_tai_write
LBB0_9:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MV88E6XXX_TAI_CFG_CAP_OVERWRITE,4,2 ; @MV88E6XXX_TAI_CFG_CAP_OVERWRITE
	.comm	_MV88E6XXX_TAI_CFG_CAP_CTR_START,4,2 ; @MV88E6XXX_TAI_CFG_CAP_CTR_START
	.comm	_MV88E6XXX_TAI_CFG_EVREQ_FALLING,4,2 ; @MV88E6XXX_TAI_CFG_EVREQ_FALLING
	.comm	_MV88E6XXX_TAI_CFG,4,2          ; @MV88E6XXX_TAI_CFG
	.comm	_PTP_CLOCK_PPS,4,2              ; @PTP_CLOCK_PPS
	.comm	_MV88E6XXX_TAI_EVENT_STATUS_CAP_TRIG,4,2 ; @MV88E6XXX_TAI_EVENT_STATUS_CAP_TRIG
	.comm	_PTP_CLOCK_EXTTS,4,2            ; @PTP_CLOCK_EXTTS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MV88E6XXX_TAI_EVENT_STATUS,4,2 ; @MV88E6XXX_TAI_EVENT_STATUS
	.no_dead_strip	_mv88e6352_config_eventcap
.subsections_via_symbols
