	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_platform_set_busid
_drm_platform_set_busid:                ## @drm_platform_set_busid
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	13(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	%ecx, 4(%rbx)
	leal	14(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_kmalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	(%r14), %rcx
	movl	8(%rcx), %edx
	xorl	%r8d, %r8d
	cmpl	$-1, %edx
	cmovnel	%edx, %r8d
	movl	(%rbx), %esi
	movq	(%rcx), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rdi
	callq	_snprintf
	cmpl	(%rbx), %eax
	jle	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	movq	(%r14), %rax
	movq	(%rax), %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movl	(%rbx), %ecx
	leal	(%rax,%rcx), %edi
	addl	$2, %edi
	movl	(%r15), %esi
	callq	_kmalloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	(%r14), %rcx
	movq	(%rcx), %rdx
	movq	8(%rbx), %rcx
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	callq	_sprintf
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"platform:%s:%02d"

L_.str.1:                               ## @.str.1
	.asciz	"Unique buffer overflowed\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"%s@%s"

	.no_dead_strip	_drm_platform_set_busid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_platform_set_busid
_drm_platform_set_busid:                ; @drm_platform_set_busid
	.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, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x0, [x8]
	bl	_strlen
	add	w8, w0, #13
	stp	w8, w8, [x19]
	add	w0, w0, #14
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_kmalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x20]
	ldr	w9, [x8, #8]
	cmn	w9, #1
	csel	w4, wzr, w9, eq
	ldr	w1, [x19]
	ldr	x3, [x8]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_snprintf
	ldr	w8, [x19]
	cmp	w0, w8
	b.le	LBB0_3
; %bb.2:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_strlen
	ldr	w8, [x19]
	add	w8, w0, w8
	add	w0, w8, #2
	ldr	w1, [x21]
	bl	_kmalloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x20]
	ldr	x2, [x8]
	ldr	x3, [x19, #8]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_sprintf
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"platform:%s:%02d"

l_.str.1:                               ; @.str.1
	.asciz	"Unique buffer overflowed\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"%s@%s"

	.no_dead_strip	_drm_platform_set_busid
.subsections_via_symbols
