	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function irnet_post_event
_irnet_post_event:                      ## @irnet_post_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, %r13
	movq	%rcx, %r8
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rdx
	movq	_CTRL_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%r12d, %ecx
	movq	%r13, %r9
	callq	_DENTER
	movq	_irnet_events@GOTPCREL(%rip), %rbx
	leaq	8(%rbx), %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_bh
	movslq	(%rbx), %r15
	movq	16(%rbx), %rax
	leaq	(%r15,%r15,4), %r14
	movl	%r12d, 32(%rax,%r14,8)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 24(%rax,%r14,8)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 16(%rax,%r14,8)
	movq	(%rax,%r14,8), %rdi
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	movq	%r13, %rsi
	callq	_strcpy
	jmp	LBB0_3
LBB0_2:
	movb	$0, (%rdi)
LBB0_3:
	movq	16(%rbx), %rcx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%rcx,%r14,8)
	movl	$-1, %eax
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	cmpq	$0, 8(%rdi)
	je	LBB0_6
## %bb.5:
	callq	_ppp_unit_number
	movq	16(%rbx), %rcx
LBB0_6:
	movl	%eax, 8(%rcx,%r14,8)
	incl	%r15d
	movq	_IRNET_MAX_EVENTS@GOTPCREL(%rip), %rcx
	movl	%r15d, %eax
	cltd
	idivl	(%rcx)
	movl	%edx, (%rbx)
	movq	_CTRL_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_DEBUG
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_bh
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_wake_up_interruptible_all
	movq	_CTRL_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DEXIT                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CTRL_TRACE,4,2                 ## @CTRL_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(ap=0x%p, event=%d, daddr=%08x, name=``%s'')\n"

	.comm	_irnet_events,24,3              ## @irnet_events
	.comm	_IRNET_MAX_EVENTS,4,2           ## @IRNET_MAX_EVENTS
	.comm	_CTRL_INFO,4,2                  ## @CTRL_INFO
L_.str.1:                               ## @.str.1
	.asciz	"New event index is %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"\n"

	.no_dead_strip	_irnet_post_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function irnet_post_event
_irnet_post_event:                      ; @irnet_post_event
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x25, _CTRL_TRACE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _CTRL_TRACE@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x24
	mov	x4, x22
	mov	x5, x21
	bl	_DENTER
Lloh4:
	adrp	x26, _irnet_events@GOTPAGE
Lloh5:
	ldr	x26, [x26, _irnet_events@GOTPAGEOFF]
	add	x0, x26, #8
	bl	_spin_lock_bh
	ldrsw	x27, [x26]
	ldr	x8, [x26, #16]
	mov	w9, #40
	madd	x8, x27, x9, x8
	str	w24, [x8, #32]
	stp	x23, x22, [x8, #16]
	ldr	x0, [x8]
	cbz	x21, LBB0_2
; %bb.1:
	mov	x1, x21
	bl	_strcpy
	b	LBB0_3
LBB0_2:
	strb	wzr, [x0]
LBB0_3:
	ldr	x8, [x26, #16]
	mov	w9, #40
	madd	x9, x27, x9, x8
	str	w20, [x9, #12]
	cbz	x19, LBB0_6
; %bb.4:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_ppp_unit_number
	ldr	x8, [x26, #16]
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	mov	w9, #40
	madd	x8, x27, x9, x8
	str	w0, [x8, #8]
	add	w8, w27, #1
Lloh6:
	adrp	x9, _IRNET_MAX_EVENTS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IRNET_MAX_EVENTS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w2, w10, w9, w8
	mov	x19, x26
	str	w2, [x19], #8
Lloh9:
	adrp	x8, _CTRL_INFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CTRL_INFO@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DEBUG
	mov	x0, x19
	bl	_spin_unlock_bh
	add	x0, x26, #4
	bl	_wake_up_interruptible_all
	ldr	w0, [x25]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_DEXIT
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CTRL_TRACE,4,2                 ; @CTRL_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(ap=0x%p, event=%d, daddr=%08x, name=``%s'')\n"

	.comm	_irnet_events,24,3              ; @irnet_events
	.comm	_IRNET_MAX_EVENTS,4,2           ; @IRNET_MAX_EVENTS
	.comm	_CTRL_INFO,4,2                  ; @CTRL_INFO
l_.str.1:                               ; @.str.1
	.asciz	"New event index is %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"\n"

	.no_dead_strip	_irnet_post_event
.subsections_via_symbols
