	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_rect_calc_hscale           ## -- Begin function drm_rect_calc_hscale
	.p2align	4, 0x90
_drm_rect_calc_hscale:                  ## @drm_rect_calc_hscale
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %r12
	callq	_drm_rect_width
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_drm_rect_width
	movl	%eax, %ebx
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_drm_calc_scale
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	cmpl	%r15d, %eax
	jl	LBB0_4
## %bb.3:
	cmpl	%r14d, %eax
	jle	LBB0_5
LBB0_4:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERANGE,4,2                     ## @ERANGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_rect_calc_hscale           ; -- Begin function drm_rect_calc_hscale
	.p2align	2
_drm_rect_calc_hscale:                  ; @drm_rect_calc_hscale
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	bl	_drm_rect_width
	mov	x22, x0
	mov	x0, x21
	bl	_drm_rect_width
	mov	x21, x0
	mov	x0, x22
	mov	x1, x21
	bl	_drm_calc_scale
	cbz	w21, LBB0_5
; %bb.1:
	tbnz	w0, #31, LBB0_5
; %bb.2:
	cmp	w0, w20
	b.lt	LBB0_4
; %bb.3:
	cmp	w0, w19
	b.le	LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _ERANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ERANGE,4,2                     ; @ERANGE
.subsections_via_symbols
