	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arena_bin_choose_lock          ## -- Begin function arena_bin_choose_lock
	.p2align	4, 0x90
_arena_bin_choose_lock:                 ## @arena_bin_choose_lock
	.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	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_tsdn_null
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	%r13, %rdi
	callq	_tsdn_tsd
	movl	%eax, %edi
	callq	_tsd_arena_get
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	callq	_tsdn_tsd
	movl	%eax, %edi
	callq	_tsd_binshardsp_get
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %ebx
LBB0_3:
	movl	%ebx, (%r15)
	movq	_bin_infos@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%edi, %edi
	cmpl	(%rax,%r14,4), %ebx
	setb	%dil
	callq	_assert
	movq	(%r12), %rax
	movl	(%r15), %ebx
	shlq	$2, %rbx
	addq	(%rax,%r14,8), %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_malloc_mutex_lock
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bin_infos,8,3                  ## @bin_infos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arena_bin_choose_lock          ; -- Begin function arena_bin_choose_lock
	.p2align	2
_arena_bin_choose_lock:                 ; @arena_bin_choose_lock
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_tsdn_null
	cbz	x0, LBB0_2
LBB0_1:
	mov	w8, #0
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_tsdn_tsd
	bl	_tsd_arena_get
	cbz	x0, LBB0_1
; %bb.3:
	mov	x0, x19
	bl	_tsdn_tsd
	bl	_tsd_binshardsp_get
	ldr	x8, [x0]
	ldr	w8, [x8, x21, lsl #2]
LBB0_4:
Lloh0:
	adrp	x9, _bin_infos@GOTPAGE
Lloh1:
	ldr	x9, [x9, _bin_infos@GOTPAGEOFF]
	str	w8, [x20]
Lloh2:
	ldr	x9, [x9]
	ldr	w9, [x9, x21, lsl #2]
	cmp	w8, w9
	cset	w0, lo
	bl	_assert
	ldr	x8, [x22]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w9, [x20]
	add	x20, x8, x9, lsl #2
	mov	x0, x19
	mov	x1, x20
	bl	_malloc_mutex_lock
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_bin_infos,8,3                  ; @bin_infos
.subsections_via_symbols
