	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p32x_sh2_poll_event            ## -- Begin function p32x_sh2_poll_event
	.p2align	4, 0x90
_p32x_sh2_poll_event:                   ## @p32x_sh2_poll_event
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %ecx
	testl	%esi, %ecx
	je	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movq	_EL_32X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%r14d
	movl	%ecx, %r8d
	andl	%r14d, %r8d
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_elprintf_sh2
	cmpl	%r15d, 4(%rbx)
	jge	LBB0_4
## %bb.3:
	movl	%r15d, 4(%rbx)
LBB0_4:
	movq	_EVT_POLL_END@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pevt_log_sh2_o
	movl	(%rbx), %ecx
	jmp	LBB0_5
LBB0_1:
	notl	%r14d
LBB0_5:
	andl	%ecx, %r14d
	movl	%r14d, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	$0, 24(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EL_32X,4,2                     ## @EL_32X
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"state: %02x->%02x"

	.comm	_EVT_POLL_END,4,2               ## @EVT_POLL_END
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p32x_sh2_poll_event            ; -- Begin function p32x_sh2_poll_event
	.p2align	2
_p32x_sh2_poll_event:                   ; @p32x_sh2_poll_event
	.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	w3, [x0]
	tst	w3, w1
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x2
Lloh0:
	adrp	x8, _EL_32X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EL_32X@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mvn	w21, w1
	bic	w4, w3, w1
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x8
	bl	_elprintf_sh2
	ldr	w8, [x19, #4]
	cmp	w8, w20
	b.ge	LBB0_3
; %bb.2:
	str	w20, [x19, #4]
LBB0_3:
Lloh5:
	adrp	x8, _EVT_POLL_END@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EVT_POLL_END@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pevt_log_sh2_o
	ldr	w3, [x19]
	b	LBB0_5
LBB0_4:
	mvn	w21, w1
LBB0_5:
	and	w8, w3, w21
	str	w8, [x19]
	stp	xzr, xzr, [x19, #16]
	str	xzr, [x19, #8]
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EL_32X,4,2                     ; @EL_32X
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"state: %02x->%02x"

	.comm	_EVT_POLL_END,4,2               ; @EVT_POLL_END
.subsections_via_symbols
