	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ptm_poll
_ptm_poll:                              ## @ptm_poll
	.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
	movl	%edi, %r15d
	xorl	%ebx, %ebx
	movl	$0, %edi
	testl	%r15d, %r15d
	js	LBB0_2
## %bb.1:
	movq	_g_net_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ARRAY_SIZE
	xorl	%edi, %edi
	cmpl	%r15d, %eax
	setg	%dil
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_ASSERT
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	callq	_WRX_DMA_CHANNEL_CONFIG
	cmpq	$0, (%rax)
	jle	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %edi
	callq	_mailbox_rx_irq_handler
	testq	%rax, %rax
	js	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	cmpl	%ebx, %r14d
	jne	LBB0_4
## %bb.7:
	movl	%r14d, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_net_dev,4,2                  ## @g_net_dev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ndev = %d (wrong value)"

	.no_dead_strip	_ptm_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ptm_poll
_ptm_poll:                              ; @ptm_poll
	.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, x1
	mov	x20, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _g_net_dev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_net_dev@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ARRAY_SIZE
	cmp	w0, w20
	cset	w0, gt
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_ASSERT
	mov	w21, #0
	cbz	w19, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_WRX_DMA_CHANNEL_CONFIG
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_mailbox_rx_irq_handler
	tbnz	x0, #63, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	cmp	w19, w21
	b.ne	LBB0_4
; %bb.7:
	mov	x21, x19
LBB0_8:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_g_net_dev,4,2                  ; @g_net_dev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ndev = %d (wrong value)"

	.no_dead_strip	_ptm_poll
.subsections_via_symbols
