	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_connector_attach_max_bpc_property ## -- Begin function drm_connector_attach_max_bpc_property
	.p2align	4, 0x90
_drm_connector_attach_max_bpc_property: ## @drm_connector_attach_max_bpc_property
	.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
	movl	%edx, %r14d
	movl	%esi, %ecx
	movq	%rdi, %rbx
	movq	16(%rdi), %rsi
	testq	%rsi, %rsi
	jne	LBB0_4
## %bb.1:
	movq	24(%rbx), %rdi
	leaq	L_.str(%rip), %rdx
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	%r14d, %r8d
	callq	_drm_property_create_range
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rsi
	movq	%rax, 16(%rbx)
LBB0_4:
	leaq	8(%rbx), %rdi
	movl	%r14d, %edx
	callq	_drm_object_attach_property
	movq	(%rbx), %rax
	movl	%r14d, (%rax)
	movl	%r14d, 4(%rax)
	xorl	%r15d, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"max bpc"

	.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_connector_attach_max_bpc_property ; -- Begin function drm_connector_attach_max_bpc_property
	.p2align	2
_drm_connector_attach_max_bpc_property: ; @drm_connector_attach_max_bpc_property
	.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, x2
	mov	x3, x1
	mov	x20, x0
	ldr	x1, [x0, #16]
	cbnz	x1, LBB0_3
; %bb.1:
	ldr	x0, [x20, #24]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x4, x19
	bl	_drm_property_create_range
	cbz	x0, LBB0_5
; %bb.2:
	mov	x1, x0
	str	x0, [x20, #16]
LBB0_3:
	add	x0, x20, #8
	mov	x2, x19
	bl	_drm_object_attach_property
	mov	w0, #0
	ldr	x8, [x20]
	stp	w19, w19, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"max bpc"

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