	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setting_get_string_representation_uint_custom_viewport_width
_setting_get_string_representation_uint_custom_viewport_width: ## @setting_get_string_representation_uint_custom_viewport_width
	.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_6
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_video_viewport_get_system_av_info
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_retroarch_get_rotation
	testb	$1, %al
	jne	LBB0_3
## %bb.2:
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	cltd
	idivl	(%r12)
	testl	%edx, %edx
	je	LBB0_7
LBB0_3:
	xorl	%eax, %eax
	callq	_retroarch_get_rotation
	movq	(%rbx), %rcx
	movl	(%rcx), %ecx
	testb	$1, %al
	je	LBB0_5
## %bb.4:
	movl	%ecx, %eax
	cltd
	idivl	4(%r12)
	testl	%edx, %edx
	je	LBB0_7
LBB0_5:
	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_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %r8d
	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	"%u (%ux)"

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

	.no_dead_strip	_setting_get_string_representation_uint_custom_viewport_width
.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_uint_custom_viewport_width
_setting_get_string_representation_uint_custom_viewport_width: ; @setting_get_string_representation_uint_custom_viewport_width
	.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_7
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_video_viewport_get_system_av_info
	mov	x22, x0
	bl	_retroarch_get_rotation
	tbnz	w0, #0, LBB0_3
; %bb.2:
	ldr	x8, [x21]
	ldr	w3, [x8]
	ldr	w9, [x22]
	sdiv	w8, w3, w9
	msub	w9, w8, w9, w3
	cbz	w9, LBB0_6
LBB0_3:
	bl	_retroarch_get_rotation
	ldr	x8, [x21]
	ldr	w3, [x8]
	tbz	w0, #0, LBB0_5
; %bb.4:
	ldr	w9, [x22, #4]
	sdiv	w8, w3, w9
	msub	w9, w8, w9, w3
	cbz	w9, LBB0_6
LBB0_5:
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_6:
	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_7:
	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	"%u (%ux)"

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

	.no_dead_strip	_setting_get_string_representation_uint_custom_viewport_width
.subsections_via_symbols
