	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_make_listen_node
_i40iw_make_listen_node:                ## @i40iw_make_listen_node
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	20(%rdx), %esi
	movl	4(%rdx), %ecx
	movl	16(%rdx), %edx
	movq	_I40IW_CM_LISTENER_EITHER_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	callq	_i40iw_find_listener
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_I40IW_CM_LISTENER_ACTIVE_STATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	addq	$56, %rbx
	movq	%rbx, %rdi
	callq	_atomic_dec
	movl	12(%r14), %edi
	movq	_I40IW_DEBUG_CM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_i40iw_debug
	jmp	LBB0_8
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %rbx
	incl	8(%r14)
	movl	68(%rax), %edi
	movl	20(%r15), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	16(%r15), %eax
	movl	%eax, 64(%rbx)
	leaq	60(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	addq	$56, %rdi
	movl	$1, %esi
	callq	_atomic_set
	jmp	LBB0_6
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_5:
	movl	$1, 8(%rbx)
LBB0_6:
	movl	12(%r15), %eax
	movl	%eax, 52(%rbx)
	movl	8(%r15), %eax
	movl	%eax, 48(%rbx)
	movl	4(%r15), %eax
	movl	%eax, 44(%rbx)
	leaq	40(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%r14, 32(%rbx)
	movq	%r12, 24(%rbx)
	movl	(%r15), %eax
	movl	%eax, 16(%rbx)
	movq	_I40IW_CM_LISTENER_ACTIVE_STATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	cmpl	$0, 8(%rbx)
	jne	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	leaq	12(%rbx), %rdi
	leaq	4(%r14), %rsi
	callq	_list_add
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_9:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_CM_LISTENER_EITHER_STATE,4,2 ## @I40IW_CM_LISTENER_EITHER_STATE
	.comm	_I40IW_CM_LISTENER_ACTIVE_STATE,8,3 ## @I40IW_CM_LISTENER_ACTIVE_STATE
	.comm	_I40IW_DEBUG_CM,4,2             ## @I40IW_DEBUG_CM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not creating listener since it already exists\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_i40iw_make_listen_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_make_listen_node
_i40iw_make_listen_node:                ; @i40iw_make_listen_node
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldp	w2, w1, [x2, #16]
	ldr	w3, [x21, #4]
Lloh0:
	adrp	x8, _I40IW_CM_LISTENER_EITHER_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_CM_LISTENER_EITHER_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	bl	_i40iw_find_listener
Lloh3:
	adrp	x23, _I40IW_CM_LISTENER_ACTIVE_STATE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _I40IW_CM_LISTENER_ACTIVE_STATE@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	add	x0, x20, #56
	bl	_atomic_dec
	ldr	w0, [x19, #12]
Lloh5:
	adrp	x8, _I40IW_DEBUG_CM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I40IW_DEBUG_CM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	bl	_i40iw_debug
	mov	x20, #0
	b	LBB0_8
LBB0_3:
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	ldr	w0, [x20, #68]
	ldr	w1, [x21, #20]
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x21, #16]
	str	w8, [x20, #64]
	add	x0, x20, #60
	bl	_INIT_LIST_HEAD
	add	x0, x20, #56
	mov	w1, #1
	bl	_atomic_set
	b	LBB0_6
LBB0_5:
	mov	w8, #1
	str	w8, [x20, #8]
LBB0_6:
	ldr	w8, [x21, #12]
	str	w8, [x20, #52]
	ldur	d0, [x21, #4]
	stur	d0, [x20, #44]
	add	x0, x20, #40
	mov	w1, #0
	bl	_atomic_set
	stp	x22, x19, [x20, #24]
	ldr	w8, [x21]
	str	w8, [x20, #16]
	ldr	x8, [x23]
	str	x8, [x20]
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_spin_lock_irqsave
	add	x0, x20, #12
	add	x1, x19, #4
	bl	_list_add
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_CM_LISTENER_EITHER_STATE,4,2 ; @I40IW_CM_LISTENER_EITHER_STATE
	.comm	_I40IW_CM_LISTENER_ACTIVE_STATE,8,3 ; @I40IW_CM_LISTENER_ACTIVE_STATE
	.comm	_I40IW_DEBUG_CM,4,2             ; @I40IW_DEBUG_CM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not creating listener since it already exists\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_i40iw_make_listen_node
.subsections_via_symbols
