	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brx_set_format
_brx_set_format:                        ## @brx_set_format
	.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	%rdx, %r13
	movq	%rsi, %rbx
	callq	_to_brx
	movq	%rax, %r14
	leaq	8(%rax), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movl	16(%r13), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_vsp1_entity_get_pad_config
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	(%r13), %edx
	leaq	4(%r13), %r12
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%r12, %rcx
	callq	_brx_try_format
	movl	(%r13), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_vsp1_entity_get_pad_format
	movq	%rax, %rbx
	movl	12(%r13), %eax
	movl	%eax, 8(%rbx)
	movq	4(%r13), %rax
	movq	%rax, (%rbx)
	movl	(%r13), %edx
	cmpq	%rdx, (%r14)
	jne	LBB0_4
## %bb.3:
	movq	%rdx, %rbx
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_9
LBB0_4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_brx_get_compose
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	movl	8(%rbx), %ecx
	movl	%ecx, 4(%rax)
	movl	4(%rbx), %ecx
	movl	%ecx, (%rax)
	movl	(%r13), %ebx
LBB0_5:
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	callq	_BRX_PAD_SINK
	cmpq	%rbx, %rax
	jne	LBB0_9
## %bb.6:
	cmpq	$0, (%r14)
	js	LBB0_9
## %bb.7:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_vsp1_entity_get_pad_format
	movl	(%r12), %ecx
	movl	%ecx, (%rax)
	incl	%ebx
	cmpq	%rbx, (%r14)
	jge	LBB0_8
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_brx_set_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brx_set_format
_brx_set_format:                        ; @brx_set_format
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x2
	mov	x21, x1
	bl	_to_brx
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	w2, [x23, #16]
	mov	x0, x20
	mov	x1, x21
	bl	_vsp1_entity_get_pad_config
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x0
	ldr	w2, [x23]
	add	x22, x23, #4
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	bl	_brx_try_format
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x21
	bl	_vsp1_entity_get_pad_format
	ldur	x8, [x23, #4]
	ldr	w9, [x23, #12]
	str	w9, [x0, #8]
	str	x8, [x0]
	ldr	w24, [x23]
	ldr	x8, [x20]
	cmp	x8, x24
	b.eq	LBB0_3
; %bb.2:
	mov	x25, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	bl	_brx_get_compose
	stp	xzr, xzr, [x0, #8]
	ldur	d0, [x25, #4]
	str	d0, [x0]
	ldr	w24, [x23]
LBB0_3:
	mov	w0, #0
	bl	_BRX_PAD_SINK
	mov	w23, #0
	cmp	x0, x24
	b.ne	LBB0_9
; %bb.4:
	ldr	x8, [x20]
	tbnz	x8, #63, LBB0_7
; %bb.5:
	mov	w23, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	_vsp1_entity_get_pad_format
	ldr	w8, [x22]
	str	w8, [x0]
	add	w23, w23, #1
	ldr	x8, [x20]
	cmp	x8, x23
	b.ge	LBB0_6
LBB0_7:
	mov	w23, #0
	b	LBB0_9
LBB0_8:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_brx_set_format
.subsections_via_symbols
