	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxa168_eth_collect_events
_pxa168_eth_collect_events:             ## @pxa168_eth_collect_events
	.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, %r14
	movq	_INT_CAUSE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_rdl
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movl	(%r15), %esi
	movl	%eax, %edx
	notl	%edx
	movq	%r14, %rdi
	callq	_wrl
	movq	_ICR_TXBUF_H@GOTPCREL(%rip), %rax
	movq	_ICR_TXBUF_L@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ebx, %ecx
	je	LBB0_3
## %bb.4:
	movq	_WORK_TX_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movl	$1, %ecx
	jmp	LBB0_5
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_3:
	xorl	%ecx, %ecx
LBB0_5:
	movq	_ICR_RXBUF@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	movl	$1, %eax
	cmovel	%ecx, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_CAUSE,4,2                  ## @INT_CAUSE
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_ICR_TXBUF_H,4,2                ## @ICR_TXBUF_H
	.comm	_ICR_TXBUF_L,4,2                ## @ICR_TXBUF_L
	.comm	_WORK_TX_DONE,4,2               ## @WORK_TX_DONE
	.comm	_ICR_RXBUF,4,2                  ## @ICR_RXBUF
	.no_dead_strip	_pxa168_eth_collect_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxa168_eth_collect_events
_pxa168_eth_collect_events:             ; @pxa168_eth_collect_events
	.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	x20, x0
Lloh0:
	adrp	x21, _INT_CAUSE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _INT_CAUSE@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_rdl
	cbz	w0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w1, [x21]
	mvn	w2, w0
	mov	x0, x20
	bl	_wrl
Lloh2:
	adrp	x8, _ICR_TXBUF_H@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ICR_TXBUF_H@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _ICR_TXBUF_L@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ICR_TXBUF_L@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w19
	b.eq	LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, _WORK_TX_DONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WORK_TX_DONE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	mov	w8, #1
	b	LBB0_5
LBB0_3:
Lloh11:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_4:
	mov	w8, #0
LBB0_5:
Lloh14:
	adrp	x9, _ICR_RXBUF@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ICR_RXBUF@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w19
	csinc	w0, w8, wzr, eq
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_CAUSE,4,2                  ; @INT_CAUSE
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_ICR_TXBUF_H,4,2                ; @ICR_TXBUF_H
	.comm	_ICR_TXBUF_L,4,2                ; @ICR_TXBUF_L
	.comm	_WORK_TX_DONE,4,2               ; @WORK_TX_DONE
	.comm	_ICR_RXBUF,4,2                  ; @ICR_RXBUF
	.no_dead_strip	_pxa168_eth_collect_events
.subsections_via_symbols
