	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function gfx_ctx_qnx__get_metrics
LCPI0_0:
	.long	0x43ac8000                      ## float 345
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_gfx_ctx_qnx__get_metrics:              ## @gfx_ctx_qnx__get_metrics
	.cfi_startproc
## %bb.0:
                                        ## kill: def $esi killed $esi def $rsi
	xorl	%eax, %eax
	leal	-129(%rsi), %ecx
	cmpl	$2, %ecx
	jb	LBB0_7
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	xorps	%xmm0, %xmm0
	cmpl	$131, %esi
	jne	LBB0_6
## %bb.2:
	movl	_gfx_ctx_qnx__get_metrics.dpi(%rip), %eax
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	callq	_dpi_get_density
	movl	%eax, _gfx_ctx_qnx__get_metrics.dpi(%rip)
	testl	%eax, %eax
	jle	LBB0_5
LBB0_4:
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movl	$1, %eax
LBB0_6:
	movss	%xmm0, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
LBB0_7:
	retq
LBB0_5:
	movl	$345, _gfx_ctx_qnx__get_metrics.dpi(%rip) ## imm = 0x159
	movl	$1, %eax
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @gfx_ctx_qnx__get_metrics.dpi
_gfx_ctx_qnx__get_metrics.dpi:
	.long	4294967295                      ## 0xffffffff

	.no_dead_strip	_gfx_ctx_qnx__get_metrics
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_ctx_qnx__get_metrics
_gfx_ctx_qnx__get_metrics:              ; @gfx_ctx_qnx__get_metrics
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	mov	w0, #0
	sub	w9, w1, #129
	cmp	w9, #2
	b.lo	LBB0_6
; %bb.1:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	movi	d0, #0000000000000000
	cmp	w1, #131
	b.ne	LBB0_5
; %bb.2:
	adrp	x20, _gfx_ctx_qnx__get_metrics.dpi@PAGE
	ldr	w0, [x20, _gfx_ctx_qnx__get_metrics.dpi@PAGEOFF]
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x8
	bl	_dpi_get_density
	str	w0, [x20, _gfx_ctx_qnx__get_metrics.dpi@PAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_7
LBB0_4:
	scvtf	s0, w0
	mov	w0, #1
LBB0_5:
	str	s0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
LBB0_6:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
LBB0_7:
	mov	w8, #345
	str	w8, [x20, _gfx_ctx_qnx__get_metrics.dpi@PAGEOFF]
	mov	w0, #1
	mov	w8, #32768
	movk	w8, #17324, lsl #16
	fmov	s0, w8
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @gfx_ctx_qnx__get_metrics.dpi
_gfx_ctx_qnx__get_metrics.dpi:
	.long	4294967295                      ; 0xffffffff

	.no_dead_strip	_gfx_ctx_qnx__get_metrics
.subsections_via_symbols
