	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setting_uint_action_right_custom_viewport_width
_setting_uint_action_right_custom_viewport_width: ## @setting_uint_action_right_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_video_viewport_get_system_av_info
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_video_viewport_get_custom
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	%rax, %rbx
	movl	$-1, %eax
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	testq	%r14, %r14
	je	LBB0_8
## %bb.2:
	leaq	-40(%rbp), %rdi
	callq	_video_driver_get_viewport_info
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.3:
	xorl	%eax, %eax
	callq	_retroarch_get_rotation
	testb	$1, %al
	jne	LBB0_4
## %bb.5:
	movq	8(%r15), %rax
	addq	(%r14), %rax
	jmp	LBB0_7
LBB0_6:
	movq	8(%r15), %rax
	incq	%rax
	jmp	LBB0_7
LBB0_4:
	movq	8(%r15), %rax
	addq	8(%r14), %rax
LBB0_7:
	movq	%rax, 8(%r15)
	cvtsi2ss	%rax, %xmm0
	divss	(%r15), %xmm0
	movq	_aspectratio_lut@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ASPECT_RATIO_CUSTOM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movss	%xmm0, (%rax,%rcx,4)
	xorl	%eax, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aspectratio_lut,8,3            ## @aspectratio_lut
	.comm	_ASPECT_RATIO_CUSTOM,8,3        ## @ASPECT_RATIO_CUSTOM
	.no_dead_strip	_setting_uint_action_right_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_uint_action_right_custom_viewport_width
_setting_uint_action_right_custom_viewport_width: ; @setting_uint_action_right_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
	bl	_video_viewport_get_system_av_info
	mov	x20, x0
	bl	_video_viewport_get_custom
	mov	x19, x0
	bl	_config_get_ptr
	mov	x21, x0
	mov	w0, #-1
	cbz	x21, LBB0_9
; %bb.1:
	cbz	x20, LBB0_9
; %bb.2:
	mov	x0, sp
	bl	_video_driver_get_viewport_info
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.3:
	bl	_retroarch_get_rotation
	tbnz	w0, #0, LBB0_6
; %bb.4:
	ldr	x8, [x20]
	b	LBB0_7
LBB0_5:
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	b	LBB0_8
LBB0_6:
	ldr	x8, [x20, #8]
LBB0_7:
	ldr	x9, [x19, #8]
	add	x8, x9, x8
LBB0_8:
	str	x8, [x19, #8]
	mov	w0, #0
	scvtf	s0, x8
	ldr	s1, [x19]
	fdiv	s0, s0, s1
Lloh0:
	adrp	x8, _aspectratio_lut@GOTPAGE
Lloh1:
	ldr	x8, [x8, _aspectratio_lut@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ASPECT_RATIO_CUSTOM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ASPECT_RATIO_CUSTOM@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	str	s0, [x8, x9, lsl #2]
LBB0_9:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_aspectratio_lut,8,3            ; @aspectratio_lut
	.comm	_ASPECT_RATIO_CUSTOM,8,3        ; @ASPECT_RATIO_CUSTOM
	.no_dead_strip	_setting_uint_action_right_custom_viewport_width
.subsections_via_symbols
