	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_property_create_blob       ## -- Begin function drm_property_create_blob
	.p2align	4, 0x90
_drm_property_create_blob:              ## @drm_property_create_blob
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	movq	_ULONG_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$-40, %rax
	cmpq	%rsi, %rax
	jb	LBB0_2
## %bb.4:
	movq	%rdx, %r15
	movq	%rdi, %r14
	leal	40(%rbx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kvzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r12
	leaq	32(%rax), %rdi
	callq	_INIT_LIST_HEAD
	leaq	40(%r12), %rdi
	movq	%rdi, 16(%r12)
	movq	%rbx, (%r12)
	movq	%r14, 24(%r12)
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
LBB0_8:
	leaq	12(%r12), %rsi
	movq	_DRM_MODE_OBJECT_BLOB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_drm_property_free_blob@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	___drm_mode_object_add
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	callq	_kvfree
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_10:
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	addq	$8, %rdi
	leaq	4(%r14), %rsi
	callq	_list_add_tail
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ULONG_MAX,4,2                  ## @ULONG_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DRM_MODE_OBJECT_BLOB,4,2       ## @DRM_MODE_OBJECT_BLOB
	.comm	_drm_property_free_blob,4,2     ## @drm_property_free_blob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_property_create_blob       ; -- Begin function drm_property_create_blob
	.p2align	2
_drm_property_create_blob:              ; @drm_property_create_blob
	.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
	cbz	x1, LBB0_7
; %bb.1:
	mov	x21, x1
Lloh0:
	adrp	x8, _ULONG_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ULONG_MAX@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	sub	x8, x8, #40
	cmp	x8, x1
	b.lo	LBB0_7
; %bb.2:
	mov	x22, x2
	mov	x19, x0
	add	w0, w21, #40
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kvzalloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x20, x0
	add	x0, x0, #32
	bl	_INIT_LIST_HEAD
	add	x0, x20, #40
	str	x21, [x20]
	stp	x0, x19, [x20, #16]
	cbz	x22, LBB0_5
; %bb.4:
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
LBB0_5:
	add	x1, x20, #12
Lloh6:
	adrp	x8, _DRM_MODE_OBJECT_BLOB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_MODE_OBJECT_BLOB@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _drm_property_free_blob@GOTPAGE
Lloh10:
	ldr	x8, [x8, _drm_property_free_blob@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	___drm_mode_object_add
	cbz	w0, LBB0_10
; %bb.6:
	mov	x0, x20
	bl	_kvfree
LBB0_7:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
	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
	b	_ERR_PTR
LBB0_9:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_10:
	mov	x0, x19
	bl	_mutex_lock
	add	x0, x20, #8
	add	x1, x19, #4
	bl	_list_add_tail
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ULONG_MAX,4,2                  ; @ULONG_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DRM_MODE_OBJECT_BLOB,4,2       ; @DRM_MODE_OBJECT_BLOB
	.comm	_drm_property_free_blob,4,2     ; @drm_property_free_blob
.subsections_via_symbols
