	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_create_suggested_offset_properties ## -- Begin function drm_mode_create_suggested_offset_properties
	.p2align	4, 0x90
_drm_mode_create_suggested_offset_properties: ## @drm_mode_create_suggested_offset_properties
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	xorl	%r14d, %r14d
	cmpq	$0, (%rbx)
	jne	LBB0_5
LBB0_2:
	movq	_DRM_MODE_PROP_IMMUTABLE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movl	$-1, %r8d
	callq	_drm_property_create_range
	movq	%rax, 8(%rbx)
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movl	$-1, %r8d
	callq	_drm_property_create_range
	movq	%rax, (%rbx)
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	testq	%rax, %rax
	jne	LBB0_5
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_PROP_IMMUTABLE,4,2    ## @DRM_MODE_PROP_IMMUTABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"suggested X"

L_.str.1:                               ## @.str.1
	.asciz	"suggested Y"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_create_suggested_offset_properties ; -- Begin function drm_mode_create_suggested_offset_properties
	.p2align	2
_drm_mode_create_suggested_offset_properties: ; @drm_mode_create_suggested_offset_properties
	.cfi_startproc
; %bb.0:
	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, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x20, _DRM_MODE_PROP_IMMUTABLE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _DRM_MODE_PROP_IMMUTABLE@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w3, #0
	mov	w4, #-1
	bl	_drm_property_create_range
	str	x0, [x19, #8]
	ldr	w1, [x20]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w3, #0
	mov	w4, #-1
	bl	_drm_property_create_range
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	ldr	x9, [x19, #8]
	cmp	x9, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_PROP_IMMUTABLE,4,2    ; @DRM_MODE_PROP_IMMUTABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"suggested X"

l_.str.1:                               ; @.str.1
	.asciz	"suggested Y"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
