	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xnu_x86_hwstep_enable64
_xnu_x86_hwstep_enable64:               ## @xnu_x86_hwstep_enable64
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	callq	_get_xnu_thread
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_xnu_thread_get_gpr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	8(%r14), %rax
	movq	_x86_THREAD_STATE32@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	$-257, %eax                     ## imm = 0xFEFF
	andl	4(%r14), %eax
	xorl	%ecx, %ecx
	testl	%r15d, %r15d
	setne	%cl
	shll	$8, %ecx
	orl	%eax, %ecx
	movl	%ecx, 4(%r14)
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_9
LBB0_4:
	movq	_x86_THREAD_STATE64@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movl	$-257, %eax                     ## imm = 0xFEFF
	andl	(%r14), %eax
	xorl	%ecx, %ecx
	testl	%r15d, %r15d
	setne	%cl
	shll	$8, %ecx
	orl	%eax, %ecx
	movl	%ecx, (%r14)
LBB0_7:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_xnu_thread_set_gpr
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_10
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
LBB0_9:
	callq	_eprintf
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error to get gpr registers in trace bit intel\n"

	.comm	_x86_THREAD_STATE32,8,3         ## @x86_THREAD_STATE32
	.comm	_x86_THREAD_STATE64,8,3         ## @x86_THREAD_STATE64
L_.str.1:                               ## @.str.1
	.asciz	"Invalid bit size\n"

L_.str.2:                               ## @.str.2
	.asciz	"error xnu_thread_set_gpr in modify_trace_bit intel\n"

	.no_dead_strip	_xnu_x86_hwstep_enable64
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xnu_x86_hwstep_enable64
_xnu_x86_hwstep_enable64:               ; @xnu_x86_hwstep_enable64
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	w1, [x0]
	bl	_get_xnu_thread
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_xnu_thread_get_gpr
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _x86_THREAD_STATE32@GOTPAGE
Lloh1:
	ldr	x9, [x9, _x86_THREAD_STATE32@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x20, #4]
	cmp	w21, #0
	cset	w9, ne
	bfi	w8, w9, #8, #1
	str	w8, [x20, #4]
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_4:
Lloh5:
	adrp	x9, _x86_THREAD_STATE64@GOTPAGE
Lloh6:
	ldr	x9, [x9, _x86_THREAD_STATE64@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
	ldr	w8, [x20]
	cmp	w21, #0
	cset	w9, ne
	bfi	w8, w9, #8, #1
	str	w8, [x20]
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_xnu_thread_set_gpr
	cbz	w0, LBB0_8
; %bb.7:
	mov	w0, #1
	b	LBB0_11
LBB0_8:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	bl	_eprintf
	mov	w0, #0
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error to get gpr registers in trace bit intel\n"

	.comm	_x86_THREAD_STATE32,8,3         ; @x86_THREAD_STATE32
	.comm	_x86_THREAD_STATE64,8,3         ; @x86_THREAD_STATE64
l_.str.1:                               ; @.str.1
	.asciz	"Invalid bit size\n"

l_.str.2:                               ; @.str.2
	.asciz	"error xnu_thread_set_gpr in modify_trace_bit intel\n"

	.no_dead_strip	_xnu_x86_hwstep_enable64
.subsections_via_symbols
