	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpi_get_density
_dpi_get_density:                       ## @dpi_get_density
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movl	$-1, %ebx
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movl	(%rdi), %edi
	movq	_SCREEN_PROPERTY_DPI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	callq	_screen_get_display_property_iv
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_ERR
	jmp	LBB0_4
LBB0_3:
	movl	-24(%rbp), %edi
	movl	-20(%rbp), %esi
	callq	_min
	movl	%eax, %ebx
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SCREEN_PROPERTY_DPI,4,2        ## @SCREEN_PROPERTY_DPI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"screen_get_display_property_iv [SCREEN_PROPERTY_DPI] failed.\n"

	.no_dead_strip	_dpi_get_density
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpi_get_density
_dpi_get_density:                       ; @dpi_get_density
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x0]
Lloh3:
	adrp	x8, _SCREEN_PROPERTY_DPI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCREEN_PROPERTY_DPI@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_screen_get_display_property_iv
	cbz	x0, LBB0_4
; %bb.2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_ERR
LBB0_3:
	mov	w0, #-1
	b	LBB0_5
LBB0_4:
	ldp	w0, w1, [sp]
	bl	_min
LBB0_5:
	ldr	x8, [sp, #8]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SCREEN_PROPERTY_DPI,4,2        ; @SCREEN_PROPERTY_DPI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"screen_get_display_property_iv [SCREEN_PROPERTY_DPI] failed.\n"

	.no_dead_strip	_dpi_get_density
.subsections_via_symbols
