	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_create_event
_i40iw_create_event:                    ## @i40iw_create_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
	cmpq	$0, 8(%rdi)
	je	LBB0_4
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	movl	%r14d, (%rax)
	movq	%r15, 32(%rax)
	movl	8(%rax), %edi
	movl	28(%r15), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	12(%rbx), %edi
	movl	24(%r15), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	20(%r15), %eax
	movl	%eax, 28(%rbx)
	movl	16(%r15), %eax
	movl	%eax, 24(%rbx)
	movq	8(%r15), %rax
	movq	%rax, 16(%rbx)
	movl	(%r15), %edi
	movq	_I40IW_DEBUG_CM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %eax
	movl	12(%rbx), %r10d
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rcx
	movq	%rbx, %r8
	movl	%r14d, %r9d
	pushq	%rax
	pushq	%r10
	callq	_i40iw_debug
	addq	$16, %rsp
	movq	%rbx, %rdi
	callq	_i40iw_cm_post_event
	jmp	LBB0_5
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_I40IW_DEBUG_CM,4,2             ## @I40IW_DEBUG_CM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"node=%p event=%p type=%u dst=%pI4 src=%pI4\n"

	.no_dead_strip	_i40iw_create_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_create_event
_i40iw_create_event:                    ; @i40iw_create_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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.2:
	str	w20, [x19]
	str	x21, [x19, #32]
	ldr	w0, [x19, #8]
	ldr	w1, [x21, #28]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19, #12]
	ldr	w1, [x21, #24]
	mov	w2, #4
	bl	_memcpy
	ldr	d0, [x21, #16]
	str	d0, [x19, #24]
	ldr	x8, [x21, #8]
	str	x8, [x19, #16]
	ldr	w0, [x21]
Lloh3:
	adrp	x8, _I40IW_DEBUG_CM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40IW_DEBUG_CM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldp	w7, w6, [x19, #8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x21
	mov	x4, x19
	mov	x5, x20
	bl	_i40iw_debug
	mov	x0, x19
	bl	_i40iw_cm_post_event
	b	LBB0_4
LBB0_3:
	mov	x19, #0
LBB0_4:
	mov	x0, x19
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_I40IW_DEBUG_CM,4,2             ; @I40IW_DEBUG_CM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"node=%p event=%p type=%u dst=%pI4 src=%pI4\n"

	.no_dead_strip	_i40iw_create_event
.subsections_via_symbols
