	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brx_get_selection
_brx_get_selection:                     ## @brx_get_selection
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	callq	_to_brx
	movq	%rax, %r14
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	je	LBB0_6
## %bb.1:
	movl	8(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.3:
	movq	$0, 32(%rbx)
	movq	_BRX_MAX_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	%rax, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_4:
	movl	40(%rbx), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_vsp1_entity_get_pad_config
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %r15
	movq	%r14, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_brx_get_compose
	movups	(%rax), %xmm0
	movups	%xmm0, 16(%rbx)
	movq	16(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	%r12, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BRX_MAX_SIZE,8,3               ## @BRX_MAX_SIZE
	.no_dead_strip	_brx_get_selection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brx_get_selection
_brx_get_selection:                     ; @brx_get_selection
	.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	x19, x2
	mov	x21, x1
	bl	_to_brx
	ldr	x8, [x19]
	ldr	x9, [x0]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.1:
	ldr	w8, [x19, #8]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.3:
	mov	w0, #0
	str	xzr, [x19, #32]
Lloh0:
	adrp	x8, _BRX_MAX_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRX_MAX_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #16]
	b	LBB0_7
LBB0_4:
	mov	x20, x0
	ldr	w2, [x19, #40]
	mov	x1, x21
	bl	_vsp1_entity_get_pad_config
	cbz	x0, LBB0_6
; %bb.5:
	mov	x21, x0
	add	x22, x20, #8
	mov	x0, x22
	bl	_mutex_lock
	ldr	x2, [x19]
	mov	x0, x20
	mov	x1, x21
	bl	_brx_get_compose
	ldr	x8, [x0, #16]
	ldr	q0, [x0]
	str	q0, [x19, #16]
	str	x8, [x19, #32]
	mov	x0, x22
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BRX_MAX_SIZE,8,3               ; @BRX_MAX_SIZE
	.no_dead_strip	_brx_get_selection
.subsections_via_symbols
