	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_dbgfs_inject_packet_write
_iwl_dbgfs_inject_packet_write:         ## @iwl_dbgfs_inject_packet_write
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	$0, -44(%rbp)
	movq	$0, -52(%rbp)
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_IWL_DEVICE_FAMILY_22560@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_IWL_RX_DESC_SIZE_V1@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	$4, %r12d
	cmovlq	%rax, %r12
	callq	_iwl_mvm_firmware_running
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_4
## %bb.5:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_alloc_pages
	movl	%eax, -56(%rbp)
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%r14, %r13
	shrq	%r13
	leaq	-56(%rbp), %rdi
	callq	_rxb_addr
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	-56(%rbp), %edi
	callq	_page_address
	movl	%eax, %edi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_hex2bin
	testl	%eax, %eax
	je	LBB0_8
## %bb.14:
	movl	%eax, %r15d
	leaq	-56(%rbp), %rdi
	callq	_iwl_free_rxb
	movslq	%r15d, %r14
	jmp	LBB0_13
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subq	(%rax), %r14
LBB0_13:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movslq	%r13d, %r13
	leaq	16(%r12), %rax
	cmpq	%rax, %r13
	jb	LBB0_12
## %bb.9:
	movl	8(%r15), %esi
	movl	12(%r15), %edi
	callq	_WIDE_ID
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_LEGACY_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_REPLY_RX_MPDU_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WIDE_ID
	cmpq	%rax, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_12
## %bb.10:
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	cltq
	subq	%r12, %r13
	addq	$-16, %r13
	cmpq	%rax, %r13
	jne	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	callq	_local_bh_disable
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_iwl_mvm_rx_mpdu_mq
	xorl	%eax, %eax
	callq	_local_bh_enable
LBB0_12:
	leaq	-56(%rbp), %rdi
	callq	_iwl_free_rxb
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IWL_DEVICE_FAMILY_22560,8,3    ## @IWL_DEVICE_FAMILY_22560
	.comm	_IWL_RX_DESC_SIZE_V1,4,2        ## @IWL_RX_DESC_SIZE_V1
	.comm	_EIO,8,3                        ## @EIO
	.comm	_ENOTSUPP,8,3                   ## @ENOTSUPP
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_LEGACY_GROUP,4,2               ## @LEGACY_GROUP
	.comm	_REPLY_RX_MPDU_CMD,4,2          ## @REPLY_RX_MPDU_CMD
	.no_dead_strip	_iwl_dbgfs_inject_packet_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_dbgfs_inject_packet_write
_iwl_dbgfs_inject_packet_write:         ; @iwl_dbgfs_inject_packet_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	str	wzr, [sp, #12]
	stur	xzr, [sp, #4]
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _IWL_DEVICE_FAMILY_22560@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IWL_DEVICE_FAMILY_22560@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _IWL_RX_DESC_SIZE_V1@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IWL_RX_DESC_SIZE_V1@GOTPAGEOFF]
Lloh5:
	ldrsw	x10, [x10]
	mov	w11, #4
	cmp	x8, x9
	csel	x24, x10, x11, lt
	bl	_iwl_mvm_firmware_running
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_6
; %bb.2:
Lloh6:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_alloc_pages
	str	w0, [sp]
	cbz	w0, LBB0_7
; %bb.3:
	lsr	x23, x19, #1
	mov	x0, sp
	bl	_rxb_addr
	mov	x22, x0
	ldr	w0, [sp]
	bl	_page_address
	mov	x1, x21
	mov	x2, x23
	bl	_hex2bin
	cbz	w0, LBB0_10
; %bb.4:
	mov	x21, x0
	mov	x0, sp
	bl	_iwl_free_rxb
	sxtw	x19, w21
	b	LBB0_9
LBB0_5:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_9:
	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
	add	sp, sp, #80
	ret
LBB0_10:
	sxtw	x23, w23
	add	x8, x24, #16
	cmp	x23, x8
	b.lo	LBB0_14
; %bb.11:
	ldp	w1, w0, [x22, #8]
	bl	_WIDE_ID
	mov	x21, x0
Lloh15:
	adrp	x8, _LEGACY_GROUP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LEGACY_GROUP@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _REPLY_RX_MPDU_CMD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REPLY_RX_MPDU_CMD@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_WIDE_ID
	cmp	x21, x0
	b.ne	LBB0_14
; %bb.12:
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_le16_to_cpu
	sub	x8, x23, x24
	sub	x8, x8, #16
	cmp	x8, w0, sxtw
	b.ne	LBB0_14
; %bb.13:
	bl	_local_bh_disable
	mov	x2, sp
	mov	x0, x20
	mov	x1, #0
	mov	w3, #0
	bl	_iwl_mvm_rx_mpdu_mq
	bl	_local_bh_enable
LBB0_14:
	mov	x0, sp
	bl	_iwl_free_rxb
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IWL_DEVICE_FAMILY_22560,8,3    ; @IWL_DEVICE_FAMILY_22560
	.comm	_IWL_RX_DESC_SIZE_V1,4,2        ; @IWL_RX_DESC_SIZE_V1
	.comm	_EIO,8,3                        ; @EIO
	.comm	_ENOTSUPP,8,3                   ; @ENOTSUPP
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_LEGACY_GROUP,4,2               ; @LEGACY_GROUP
	.comm	_REPLY_RX_MPDU_CMD,4,2          ; @REPLY_RX_MPDU_CMD
	.no_dead_strip	_iwl_dbgfs_inject_packet_write
.subsections_via_symbols
