	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_op_x86_get_ctrl                ## -- Begin function op_x86_get_ctrl
	.p2align	4, 0x90
_op_x86_get_ctrl:                       ## @op_x86_get_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ARCH_PERFMON_EVENTSEL_INV@GOTPCREL(%rip), %rax
	movq	_ARCH_PERFMON_EVENTSEL_EDGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_ARCH_PERFMON_EVENTSEL_INT@GOTPCREL(%rip), %rax
	movq	_ARCH_PERFMON_EVENTSEL_CMASK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	xorl	%r8d, %r8d
	cmpq	$0, 16(%rsi)
	movl	$0, %edx
	je	LBB0_2
## %bb.1:
	movq	_ARCH_PERFMON_EVENTSEL_USR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_2:
	movzbl	24(%rsi), %r10d
	movl	(%rsi), %r9d
	orl	(%rax), %edx
	andl	4(%rsi), %ecx
	cmpq	$0, 8(%rsi)
	je	LBB0_4
## %bb.3:
	movq	_ARCH_PERFMON_EVENTSEL_OS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_4:
	movl	%ecx, 4(%rsi)
	movl	(%rdi), %esi
	testl	%esi, %esi
	movl	$255, %eax
	cmovnel	%esi, %eax
	andl	%r10d, %eax
	shll	$8, %r9d
	movzwl	%r9w, %esi
	orl	%r8d, %esi
	orl	%esi, %edx
	orl	%ecx, %eax
	orl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCH_PERFMON_EVENTSEL_INT,4,2  ## @ARCH_PERFMON_EVENTSEL_INT
	.comm	_ARCH_PERFMON_EVENTSEL_USR,4,2  ## @ARCH_PERFMON_EVENTSEL_USR
	.comm	_ARCH_PERFMON_EVENTSEL_OS,4,2   ## @ARCH_PERFMON_EVENTSEL_OS
	.comm	_ARCH_PERFMON_EVENTSEL_INV,4,2  ## @ARCH_PERFMON_EVENTSEL_INV
	.comm	_ARCH_PERFMON_EVENTSEL_EDGE,4,2 ## @ARCH_PERFMON_EVENTSEL_EDGE
	.comm	_ARCH_PERFMON_EVENTSEL_CMASK,4,2 ## @ARCH_PERFMON_EVENTSEL_CMASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_op_x86_get_ctrl                ; -- Begin function op_x86_get_ctrl
	.p2align	2
_op_x86_get_ctrl:                       ; @op_x86_get_ctrl
	.cfi_startproc
; %bb.0:
	ldrb	w8, [x1, #24]
Lloh0:
	adrp	x9, _ARCH_PERFMON_EVENTSEL_INT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ARCH_PERFMON_EVENTSEL_INT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _ARCH_PERFMON_EVENTSEL_USR@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ARCH_PERFMON_EVENTSEL_USR@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	ldp	x12, x11, [x1, #8]
Lloh6:
	adrp	x13, _ARCH_PERFMON_EVENTSEL_OS@GOTPAGE
Lloh7:
	ldr	x13, [x13, _ARCH_PERFMON_EVENTSEL_OS@GOTPAGEOFF]
Lloh8:
	adrp	x14, _ARCH_PERFMON_EVENTSEL_INV@GOTPAGE
Lloh9:
	ldr	x14, [x14, _ARCH_PERFMON_EVENTSEL_INV@GOTPAGEOFF]
Lloh10:
	ldr	w13, [x13]
Lloh11:
	ldr	w14, [x14]
Lloh12:
	adrp	x15, _ARCH_PERFMON_EVENTSEL_EDGE@GOTPAGE
Lloh13:
	ldr	x15, [x15, _ARCH_PERFMON_EVENTSEL_EDGE@GOTPAGEOFF]
Lloh14:
	ldr	w15, [x15]
	orr	w14, w15, w14
Lloh15:
	adrp	x15, _ARCH_PERFMON_EVENTSEL_CMASK@GOTPAGE
Lloh16:
	ldr	x15, [x15, _ARCH_PERFMON_EVENTSEL_CMASK@GOTPAGEOFF]
Lloh17:
	ldr	w15, [x15]
	orr	w14, w14, w15
	ldp	w15, w16, [x1]
	and	w14, w16, w14
	str	w14, [x1, #4]
	ldr	w16, [x0]
	mov	w17, #255
	cmp	w16, #0
	csel	w16, w17, w16, eq
	and	w8, w16, w8
	cmp	x11, #0
	csel	w10, wzr, w10, eq
	orr	w9, w10, w9
	cmp	x12, #0
	csel	w10, wzr, w13, eq
	orr	w9, w9, w10
	ubfiz	w10, w15, #8, #8
	orr	w9, w9, w10
	orr	w9, w9, w14
	orr	w0, w9, w8
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCH_PERFMON_EVENTSEL_INT,4,2  ; @ARCH_PERFMON_EVENTSEL_INT
	.comm	_ARCH_PERFMON_EVENTSEL_USR,4,2  ; @ARCH_PERFMON_EVENTSEL_USR
	.comm	_ARCH_PERFMON_EVENTSEL_OS,4,2   ; @ARCH_PERFMON_EVENTSEL_OS
	.comm	_ARCH_PERFMON_EVENTSEL_INV,4,2  ; @ARCH_PERFMON_EVENTSEL_INV
	.comm	_ARCH_PERFMON_EVENTSEL_EDGE,4,2 ; @ARCH_PERFMON_EVENTSEL_EDGE
	.comm	_ARCH_PERFMON_EVENTSEL_CMASK,4,2 ; @ARCH_PERFMON_EVENTSEL_CMASK
.subsections_via_symbols
