	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpaa2_ptp_irq_handler_thread
_dpaa2_ptp_irq_handler_thread:          ## @dpaa2_ptp_irq_handler_thread
	.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	%rsi, %r15
	movl	$0, -44(%rbp)
	movq	8(%rsi), %r14
	movq	%r14, %rdi
	callq	_to_fsl_mc_device
	movq	%rax, %r12
	movl	(%rax), %edx
	movl	4(%rax), %edi
	movq	_DPRTC_IRQ_INDEX@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leaq	-44(%rbp), %r8
	xorl	%esi, %esi
	callq	_dprtc_get_irq_status
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_7
LBB0_2:
	movl	-44(%rbp), %r8d
	movq	_DPRTC_EVENT_PPS@GOTPCREL(%rip), %rax
	testl	%r8d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_PTP_CLOCK_PPS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	(%r15), %edi
	leaq	-48(%rbp), %rsi
	callq	_ptp_clock_event
	movl	-44(%rbp), %r8d
LBB0_4:
	movl	(%r12), %edx
	movl	4(%r12), %edi
	movl	(%r13), %ecx
	xorl	%esi, %esi
	callq	_dprtc_clear_irq_status
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_DPRTC_IRQ_INDEX,4,2            ## @DPRTC_IRQ_INDEX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dprtc_get_irq_status err %d\n"

	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_DPRTC_EVENT_PPS,4,2            ## @DPRTC_EVENT_PPS
	.comm	_PTP_CLOCK_PPS,4,2              ## @PTP_CLOCK_PPS
L_.str.1:                               ## @.str.1
	.asciz	"dprtc_clear_irq_status err %d\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_dpaa2_ptp_irq_handler_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpaa2_ptp_irq_handler_thread
_dpaa2_ptp_irq_handler_thread:          ; @dpaa2_ptp_irq_handler_thread
	.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	x21, x1
	str	wzr, [sp, #4]
	ldr	x19, [x1, #8]
	mov	x0, x19
	bl	_to_fsl_mc_device
	mov	x20, x0
	ldr	w0, [x0, #4]
	ldr	w2, [x20]
Lloh0:
	adrp	x23, _DPRTC_IRQ_INDEX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DPRTC_IRQ_INDEX@GOTPAGEOFF]
	ldr	w3, [x23]
	add	x4, sp, #4
	mov	w1, #0
	bl	_dprtc_get_irq_status
	mov	x22, x0
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	b	LBB0_6
LBB0_2:
	ldr	w4, [sp, #4]
Lloh4:
	adrp	x8, _DPRTC_EVENT_PPS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DPRTC_EVENT_PPS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w4
	b.eq	LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _PTP_CLOCK_PPS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PTP_CLOCK_PPS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w0, [x21]
	add	x1, sp, #8
	bl	_ptp_clock_event
	ldr	w4, [sp, #4]
LBB0_4:
	ldp	w2, w0, [x20]
	ldr	w3, [x23]
	mov	w1, #0
	bl	_dprtc_clear_irq_status
	mov	x20, x0
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.5:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
LBB0_6:
	bl	_dev_err
Lloh12:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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_8:
Lloh14:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DPRTC_IRQ_INDEX,4,2            ; @DPRTC_IRQ_INDEX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dprtc_get_irq_status err %d\n"

	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_DPRTC_EVENT_PPS,4,2            ; @DPRTC_EVENT_PPS
	.comm	_PTP_CLOCK_PPS,4,2              ; @PTP_CLOCK_PPS
l_.str.1:                               ; @.str.1
	.asciz	"dprtc_clear_irq_status err %d\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_dpaa2_ptp_irq_handler_thread
.subsections_via_symbols
