	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w32_reg_read
_w32_reg_read:                          ## @w32_reg_read
	.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
	movl	%ecx, %r13d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	(%rdi), %eax
	movl	4(%rdi), %esi
	movl	%eax, %edi
	callq	_w32_open_thread
	movq	%rax, %rbx
	leaq	-48(%rbp), %r14
	xorl	%r12d, %r12d
	movl	$4, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_CONTEXT_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_GetThreadContext
	movq	_TRUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	cmpl	$4, %r13d
	cmovbl	%r13d, %r15d
	leaq	-48(%rbp), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_memcpy
	movl	%r15d, %r12d
	cmpl	$-2, -52(%rbp)                  ## 4-byte Folded Reload
	jle	LBB0_4
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_r_sys_perror
	cmpl	$-2, -52(%rbp)                  ## 4-byte Folded Reload
	jg	LBB0_5
LBB0_4:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_printwincontext
LBB0_5:
	movq	%rbx, %rdi
	callq	_CloseHandle
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONTEXT_ALL,4,2                ## @CONTEXT_ALL
	.comm	_TRUE,8,3                       ## @TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w32_reg_read/GetThreadContext"

	.no_dead_strip	_w32_reg_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w32_reg_read
_w32_reg_read:                          ; @w32_reg_read
	.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	x22, x3
	mov	x21, x2
	mov	x20, x1
	ldp	w8, w1, [x0]
	mov	x0, x8
	bl	_w32_open_thread
	mov	x19, x0
	mov	w23, #4
	mov	x0, sp
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x8, _CONTEXT_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONTEXT_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x1, sp
	mov	x0, x19
	bl	_GetThreadContext
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	cmp	w22, #4
	csel	w22, w22, w23, lo
	mov	x1, sp
	mov	x0, x21
	mov	x2, x22
	bl	_memcpy
	cmn	w20, #2
	b.le	LBB0_3
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_r_sys_perror
	mov	w22, #0
	cmn	w20, #2
	b.gt	LBB0_4
LBB0_3:
	mov	x1, sp
	mov	x0, x19
	bl	_printwincontext
LBB0_4:
	mov	x0, x19
	bl	_CloseHandle
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CONTEXT_ALL,4,2                ; @CONTEXT_ALL
	.comm	_TRUE,8,3                       ; @TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w32_reg_read/GetThreadContext"

	.no_dead_strip	_w32_reg_read
.subsections_via_symbols
