	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mesh_queue_preq
_mesh_queue_preq:                       ## @mesh_queue_preq
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	leaq	36(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movq	16(%r14), %rax
	movq	_MAX_PREQ_QUEUE_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movq	%r12, %rdi
	callq	_kfree
	xorl	%eax, %eax
	callq	_printk_ratelimit
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mhwmp_dbg                      ## TAILCALL
LBB0_6:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	leaq	4(%rbx), %r13
	movq	%r13, %rdi
	callq	_spin_lock
	movq	_MESH_PATH_REQ_QUEUED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_7
## %bb.13:
	movq	%r13, %rdi
	callq	_spin_unlock
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	8(%r12), %edi
	movl	8(%rbx), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r12)
	movq	_MESH_PATH_REQ_QUEUED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	%r13, %rdi
	callq	_spin_unlock
	leaq	40(%r14), %rsi
	movq	%r12, %rdi
	callq	_list_add_tail
	incq	16(%r14)
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	(%r12), %r15
	movq	24(%r14), %rbx
	movq	%r14, %rdi
	callq	_min_preq_int_jiff
	addq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movq	(%r12), %rdi
	movq	24(%r14), %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	(%r12), %rbx
	movq	%r14, %rdi
	callq	_min_preq_int_jiff
	notq	%rax
	addq	%rbx, %rax
	movq	%rax, 24(%r14)
LBB0_10:
	movq	8(%r14), %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_queue_work           ## TAILCALL
LBB0_11:
	leaq	32(%r14), %r15
	movq	24(%r14), %rbx
	movq	%r14, %rdi
	callq	_min_preq_int_jiff
	addq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not allocate PREQ node\n"

	.comm	_MAX_PREQ_QUEUE_LEN,8,3         ## @MAX_PREQ_QUEUE_LEN
L_.str.1:                               ## @.str.1
	.asciz	"PREQ node queue full\n"

	.comm	_MESH_PATH_REQ_QUEUED,4,2       ## @MESH_PATH_REQ_QUEUED
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_mesh_queue_preq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mesh_queue_preq
_mesh_queue_preq:                       ; @mesh_queue_preq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x1
	mov	x22, x0
	ldr	x19, [x0, #16]
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_kmalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	add	x21, x19, #36
	mov	x0, x21
	bl	_spin_lock_bh
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _MAX_PREQ_QUEUE_LEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_PREQ_QUEUE_LEN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x21
	bl	_spin_unlock_bh
	mov	x0, x20
	bl	_kfree
	bl	_printk_ratelimit
	cbz	x0, LBB0_8
; %bb.3:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mhwmp_dbg
LBB0_6:
	add	x24, x22, #4
	mov	x0, x24
	bl	_spin_lock
	ldr	w8, [x22]
Lloh10:
	adrp	x25, _MESH_PATH_REQ_QUEUED@GOTPAGE
Lloh11:
	ldr	x25, [x25, _MESH_PATH_REQ_QUEUED@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
	mov	x0, x24
	bl	_spin_unlock
	mov	x0, x21
	bl	_spin_unlock_bh
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_kfree
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w0, [x20, #8]
	ldr	w1, [x22, #8]
Lloh12:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_memcpy
	str	w23, [x20, #4]
	ldr	w8, [x25]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
	mov	x0, x24
	bl	_spin_unlock
	add	x1, x19, #40
	mov	x0, x20
	bl	_list_add_tail
	ldr	x8, [x19, #16]
	add	x8, x8, #1
	str	x8, [x19, #16]
	mov	x0, x21
	bl	_spin_unlock_bh
Lloh15:
	adrp	x21, _jiffies@GOTPAGE
Lloh16:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldr	x20, [x21]
	ldr	x22, [x19, #24]
	mov	x0, x19
	bl	_min_preq_int_jiff
	add	x1, x0, x22
	mov	x0, x20
	bl	_time_after
	cbnz	x0, LBB0_12
; %bb.10:
	ldr	x0, [x21]
	ldr	x1, [x19, #24]
	bl	_time_before
	cbz	x0, LBB0_13
; %bb.11:
	ldr	x20, [x21]
	mov	x0, x19
	bl	_min_preq_int_jiff
	mvn	x8, x0
	add	x8, x20, x8
	str	x8, [x19, #24]
LBB0_12:
	ldr	x0, [x19, #8]
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ieee80211_queue_work
LBB0_13:
	add	x20, x19, #32
	ldr	x21, [x19, #24]
	mov	x0, x19
	bl	_min_preq_int_jiff
	add	x1, x0, x21
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mod_timer
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not allocate PREQ node\n"

	.comm	_MAX_PREQ_QUEUE_LEN,8,3         ; @MAX_PREQ_QUEUE_LEN
l_.str.1:                               ; @.str.1
	.asciz	"PREQ node queue full\n"

	.comm	_MESH_PATH_REQ_QUEUED,4,2       ; @MESH_PATH_REQ_QUEUED
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_mesh_queue_preq
.subsections_via_symbols
