	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fjes_hw_stop_debug             ## -- Begin function fjes_hw_stop_debug
	.p2align	4, 0x90
_fjes_hw_stop_debug:                    ## @fjes_hw_stop_debug
	.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
	cmpl	$0, 16(%rdi)
	je	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movq	24(%rdi), %r15
	movq	32(%rdi), %r12
	movl	12(%rdi), %edx
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	8(%rbx), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_FJES_DEV_COMMAND_STOP_DBG_REQ_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	$0, (%r15)
	movl	$0, 8(%r15)
	movq	_FJES_CMD_REQ_STOP_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_fjes_hw_issue_request_command
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_trace_fjes_hw_stop_debug
	movq	(%r15), %rax
	movq	_FJES_DEV_COMMAND_STOP_DBG_RES_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	_FJES_CMD_STATUS_NORMAL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_6
## %bb.4:
	cmpl	$132, 8(%r15)
	jne	LBB0_8
## %bb.5:
	movl	$0, (%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_trace_fjes_hw_stop_debug_err
	movq	_ENOMSG@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	cmpl	$129, %r12d
	je	LBB0_11
## %bb.7:
	cmpl	$128, %r12d
LBB0_8:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_9:
	subl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	leaq	L_.str.1(%rip), %rdi
	callq	_trace_fjes_hw_stop_debug_err
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_FJES_DEV_COMMAND_STOP_DBG_REQ_LEN,8,3 ## @FJES_DEV_COMMAND_STOP_DBG_REQ_LEN
	.comm	_FJES_CMD_REQ_STOP_DEBUG,4,2    ## @FJES_CMD_REQ_STOP_DEBUG
	.comm	_FJES_DEV_COMMAND_STOP_DBG_RES_LEN,8,3 ## @FJES_DEV_COMMAND_STOP_DBG_RES_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid res_buf"

	.comm	_ENOMSG,4,2                     ## @ENOMSG
	.comm	_FJES_CMD_STATUS_NORMAL,4,2     ## @FJES_CMD_STATUS_NORMAL
	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.1:                               ## @.str.1
	.asciz	"Busy Timeout"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fjes_hw_stop_debug             ; -- Begin function fjes_hw_stop_debug
	.p2align	2
_fjes_hw_stop_debug:                    ; @fjes_hw_stop_debug
	.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	w8, [x0, #16]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x19, x0
	ldp	x20, x21, [x0, #24]
	ldr	w2, [x0, #12]
	mov	x0, x21
	mov	w1, #0
	bl	_memset
	ldr	w2, [x19, #8]
	mov	x0, x20
	mov	w1, #0
	bl	_memset
Lloh0:
	adrp	x8, _FJES_DEV_COMMAND_STOP_DBG_REQ_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FJES_DEV_COMMAND_STOP_DBG_REQ_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x21]
	str	xzr, [x20]
	str	wzr, [x20, #8]
Lloh3:
	adrp	x8, _FJES_CMD_REQ_STOP_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FJES_CMD_REQ_STOP_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_fjes_hw_issue_request_command
	mov	x21, x0
	mov	x0, x20
	bl	_trace_fjes_hw_stop_debug
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _FJES_DEV_COMMAND_STOP_DBG_RES_LEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FJES_DEV_COMMAND_STOP_DBG_RES_LEN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
Lloh9:
	adrp	x8, _FJES_CMD_STATUS_NORMAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FJES_CMD_STATUS_NORMAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x20, #8]
	cmp	w8, #132
	b.ne	LBB0_8
; %bb.4:
	mov	w20, #0
	str	wzr, [x19]
	b	LBB0_10
LBB0_5:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trace_fjes_hw_stop_debug_err
Lloh14:
	adrp	x8, _ENOMSG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMSG@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	cmp	w21, #129
	b.eq	LBB0_11
; %bb.7:
	cmp	w21, #128
LBB0_8:
Lloh16:
	adrp	x8, _EPERM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	mov	x0, x20
	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
LBB0_11:
Lloh18:
	adrp	x8, _EBUSY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_trace_fjes_hw_stop_debug_err
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_FJES_DEV_COMMAND_STOP_DBG_REQ_LEN,8,3 ; @FJES_DEV_COMMAND_STOP_DBG_REQ_LEN
	.comm	_FJES_CMD_REQ_STOP_DEBUG,4,2    ; @FJES_CMD_REQ_STOP_DEBUG
	.comm	_FJES_DEV_COMMAND_STOP_DBG_RES_LEN,8,3 ; @FJES_DEV_COMMAND_STOP_DBG_RES_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid res_buf"

	.comm	_ENOMSG,4,2                     ; @ENOMSG
	.comm	_FJES_CMD_STATUS_NORMAL,4,2     ; @FJES_CMD_STATUS_NORMAL
	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.1:                               ; @.str.1
	.asciz	"Busy Timeout"

.subsections_via_symbols
