	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_property_create_blob
_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
	xorl	%ebx, %ebx
	testl	%esi, %esi
	je	LBB0_7
## %bb.1:
	movq	%rdx, %r15
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.2:
	movl	%esi, %r12d
	movq	%rdi, %r14
	leal	16(%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %rbx
	leaq	12(%rax), %rsi
	movq	_DRM_MODE_OBJECT_BLOB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_drm_mode_object_get
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_6:
	movl	%r12d, (%rbx)
	movl	8(%rbx), %edi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	addq	$4, %rdi
	movq	%r14, %rsi
	callq	_list_add_tail
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_DRM_MODE_OBJECT_BLOB,4,2       ## @DRM_MODE_OBJECT_BLOB
	.no_dead_strip	_drm_property_create_blob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_property_create_blob
_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
	mov	x19, #0
	cbz	w1, LBB0_6
; %bb.1:
	mov	x22, x2
	cbz	x2, LBB0_6
; %bb.2:
	mov	x21, x1
	mov	x20, x0
	add	w0, w1, #16
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.3:
	add	x1, x19, #12
Lloh3:
	adrp	x8, _DRM_MODE_OBJECT_BLOB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_OBJECT_BLOB@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_drm_mode_object_get
	cbz	w0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
	b	LBB0_6
LBB0_5:
	str	w21, [x19]
	ldr	w0, [x19, #8]
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
	add	x0, x19, #4
	mov	x1, x20
	bl	_list_add_tail
LBB0_6:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_DRM_MODE_OBJECT_BLOB,4,2       ; @DRM_MODE_OBJECT_BLOB
	.no_dead_strip	_drm_property_create_blob
.subsections_via_symbols
