	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_dbg_feature                ## -- Begin function qed_dbg_feature
	.p2align	4, 0x90
_qed_dbg_feature:                       ## @qed_dbg_feature
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r13d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movq	8(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	shlq	$2, %rbx
	addq	16(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_qed_ptt_acquire
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	%r13d, %edx
	callq	_qed_dbg_dump
	movq	_DBG_STATUS_OK@GOTPCREL(%rip), %rcx
	movq	_QED_MSG_DEBUG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.4:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r14d
	leaq	L_.str.1(%rip), %rdx
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	shlq	$2, %r14
	leaq	(%r14,%r14,2), %r14
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax,%r14), %edx
	movl	8(%rax,%r14), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_memcpy
	movq	8(%r12), %rax
	movl	(%rax,%r14), %eax
	shll	$2, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %edi
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	callq	_qed_dbg_get_status_str
	leaq	L_.str(%rip), %rdx
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	movl	$0, (%r14)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
LBB0_5:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_qed_ptt_release
LBB0_6:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DBG_STATUS_OK,4,2              ## @DBG_STATUS_OK
	.comm	_QED_MSG_DEBUG,4,2              ## @QED_MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"copying debugfs feature to external buffer\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_dbg_feature                ; -- Begin function qed_dbg_feature
	.p2align	2
_qed_dbg_feature:                       ; @qed_dbg_feature
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x3
	mov	x24, x2
	mov	x23, x1
	mov	x22, x0
	ldp	x26, x8, [x0, #8]
	ldr	x9, [x0]
	add	x19, x8, x9, lsl #2
	mov	x0, x19
	bl	_qed_ptt_acquire
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	bl	_qed_dbg_dump
Lloh0:
	adrp	x8, _DBG_STATUS_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DBG_STATUS_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _QED_MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QED_MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x9]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
	mov	w24, w24
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x1, x25
	bl	_DP_VERBOSE
	add	x8, x24, x24, lsl #1
	lsl	x24, x8, #2
	add	x8, x26, x24
	ldp	w2, w1, [x8, #4]
	mov	x0, x23
	bl	_memcpy
	mov	w23, #0
	ldr	x8, [x22, #8]
	ldr	w8, [x8, x24]
	lsl	w8, w8, #2
	str	w8, [x21]
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_6
LBB0_4:
	bl	_qed_dbg_get_status_str
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	x1, x25
	bl	_DP_VERBOSE
	str	wzr, [x21]
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_qed_ptt_release
LBB0_6:
	mov	x0, x23
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DBG_STATUS_OK,4,2              ; @DBG_STATUS_OK
	.comm	_QED_MSG_DEBUG,4,2              ; @QED_MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"copying debugfs feature to external buffer\n"

.subsections_via_symbols
