	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdma_counter_set_auto_mode     ## -- Begin function rdma_counter_set_auto_mode
	.p2align	4, 0x90
_rdma_counter_set_auto_mode:            ## @rdma_counter_set_auto_mode
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r13
	shlq	$5, %rbx
	cmpl	$0, 24(%r13,%rbx)
	je	LBB0_1
## %bb.2:
	movl	%ecx, %r15d
	movl	%edx, %r12d
	leaq	(%rbx,%r13), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	(%rbx,%r13), %rdi
	addq	$8, %rdi
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	movq	_RDMA_COUNTER_MODE_AUTO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r15d, %edx
	jmp	LBB0_10
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_4:
	movq	(%rdi), %rax
	movq	_RDMA_COUNTER_MODE_AUTO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	cmpq	$0, 16(%r13,%rbx)
	je	LBB0_8
## %bb.7:
	movq	_RDMA_COUNTER_MODE_MANUAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_8:
	movq	_RDMA_COUNTER_MODE_NONE@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %rsi
	xorl	%edx, %edx
LBB0_10:
	callq	___counter_set_mode
	movl	%eax, %ebx
LBB0_11:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_RDMA_COUNTER_MODE_AUTO,8,3     ## @RDMA_COUNTER_MODE_AUTO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RDMA_COUNTER_MODE_MANUAL,8,3   ## @RDMA_COUNTER_MODE_MANUAL
	.comm	_RDMA_COUNTER_MODE_NONE,8,3     ## @RDMA_COUNTER_MODE_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdma_counter_set_auto_mode     ; -- Begin function rdma_counter_set_auto_mode
	.p2align	2
_rdma_counter_set_auto_mode:            ; @rdma_counter_set_auto_mode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x23, [x0]
	add	x19, x23, x1, lsl #5
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x0, x19
	bl	_mutex_lock
	add	x0, x19, #8
	cbz	w22, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _RDMA_COUNTER_MODE_AUTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDMA_COUNTER_MODE_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	mov	x2, x21
	b	LBB0_10
LBB0_3:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_4:
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _RDMA_COUNTER_MODE_AUTO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RDMA_COUNTER_MODE_AUTO@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	add	x8, x23, x20, lsl #5
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_8
; %bb.6:
Lloh9:
	adrp	x8, _RDMA_COUNTER_MODE_MANUAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RDMA_COUNTER_MODE_MANUAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_11
LBB0_8:
Lloh14:
	adrp	x8, _RDMA_COUNTER_MODE_NONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RDMA_COUNTER_MODE_NONE@GOTPAGEOFF]
LBB0_9:
	ldr	x1, [x8]
	mov	w2, #0
LBB0_10:
	bl	___counter_set_mode
	mov	x20, x0
LBB0_11:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_RDMA_COUNTER_MODE_AUTO,8,3     ; @RDMA_COUNTER_MODE_AUTO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RDMA_COUNTER_MODE_MANUAL,8,3   ; @RDMA_COUNTER_MODE_MANUAL
	.comm	_RDMA_COUNTER_MODE_NONE,8,3     ; @RDMA_COUNTER_MODE_NONE
.subsections_via_symbols
