	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setting_get_string_representation_int_gpu_index
_setting_get_string_representation_int_gpu_index: ## @setting_get_string_representation_int_gpu_index
	.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
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_video_context_driver_get_api
	movl	%eax, %edi
	callq	_video_driver_get_gpu_api_devices
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r12
	movq	(%rbx), %rax
	movslq	(%rax), %rax
	cmpl	8(%r12), %eax
	jge	LBB0_4
## %bb.3:
	movq	(%r12), %rcx
	movq	(%rcx,%rax,8), %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	je	LBB0_6
LBB0_4:
	movq	(%rbx), %rax
	movslq	(%rax), %rcx
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snprintf                       ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%rbx), %rax
	movslq	(%rax), %rcx
	movq	(%r12), %rax
	movq	(%rax,%rcx,8), %r8
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snprintf                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d - %s"

L_.str.1:                               ## @.str.1
	.asciz	"%d"

	.no_dead_strip	_setting_get_string_representation_int_gpu_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setting_get_string_representation_int_gpu_index
_setting_get_string_representation_int_gpu_index: ; @setting_get_string_representation_int_gpu_index
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_video_context_driver_get_api
	bl	_video_driver_get_gpu_api_devices
	cbz	x0, LBB0_4
; %bb.2:
	mov	x22, x0
	ldr	x8, [x21]
	ldrsw	x8, [x8]
	ldr	w9, [x0, #8]
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.3:
	ldr	x9, [x22]
	ldr	x0, [x9, x8, lsl #3]
	bl	_string_is_empty
	cbz	w0, LBB0_5
LBB0_4:
	ldr	x8, [x21]
	ldrsw	x3, [x8]
Lloh0:
	adrp	x2, l_.str.1@PAGE
Lloh1:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	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
	add	sp, sp, #64
	b	_snprintf
LBB0_5:
	ldr	x8, [x21]
	ldrsw	x3, [x8]
	ldr	x8, [x22]
	ldr	x8, [x8, x3, lsl #3]
	str	x8, [sp]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_snprintf
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d - %s"

l_.str.1:                               ; @.str.1
	.asciz	"%d"

	.no_dead_strip	_setting_get_string_representation_int_gpu_index
.subsections_via_symbols
