	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __counter_set_mode
___counter_set_mode:                    ## @__counter_set_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_RDMA_COUNTER_MODE_AUTO@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	_ALL_AUTO_MODE_MASKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%edx, %eax
	jne	LBB0_3
## %bb.2:
	movq	(%rdi), %rax
	movq	_RDMA_COUNTER_MODE_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_4:
	movl	%esi, %eax
	movq	%rax, (%rdi)
	movl	%edx, 8(%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RDMA_COUNTER_MODE_AUTO,4,2     ## @RDMA_COUNTER_MODE_AUTO
	.comm	_ALL_AUTO_MODE_MASKS,4,2        ## @ALL_AUTO_MODE_MASKS
	.comm	_RDMA_COUNTER_MODE_NONE,8,3     ## @RDMA_COUNTER_MODE_NONE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	___counter_set_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __counter_set_mode
___counter_set_mode:                    ; @__counter_set_mode
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _RDMA_COUNTER_MODE_AUTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDMA_COUNTER_MODE_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _ALL_AUTO_MODE_MASKS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ALL_AUTO_MODE_MASKS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	bics	wzr, w2, w8
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _RDMA_COUNTER_MODE_NONE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RDMA_COUNTER_MODE_NONE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_3:
	mov	w9, w1
	str	x9, [x0]
	str	w2, [x0, #8]
	mov	w0, #0
	ret
LBB0_4:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RDMA_COUNTER_MODE_AUTO,4,2     ; @RDMA_COUNTER_MODE_AUTO
	.comm	_ALL_AUTO_MODE_MASKS,4,2        ; @ALL_AUTO_MODE_MASKS
	.comm	_RDMA_COUNTER_MODE_NONE,8,3     ; @RDMA_COUNTER_MODE_NONE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	___counter_set_mode
.subsections_via_symbols
