	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_display_info_set_bus_formats ## -- Begin function drm_display_info_set_bus_formats
	.p2align	4, 0x90
_drm_display_info_set_bus_formats:      ## @drm_display_info_set_bus_formats
	.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
	movl	%edx, %r14d
	movq	%rdi, %r15
	testq	%rsi, %rsi
	jne	LBB0_4
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.8:
	movl	$0, %r12d
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.9:
	leal	(,%r14,4), %eax
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rsi, %rdi
	movl	%eax, %esi
	callq	_kmemdup
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_6
## %bb.10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	xorl	%r12d, %r12d
LBB0_6:
	movq	8(%r15), %rdi
	callq	_kfree
	movq	%r12, 8(%r15)
	movl	%r14d, (%r15)
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.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_display_info_set_bus_formats ; -- Begin function drm_display_info_set_bus_formats
	.p2align	2
_drm_display_info_set_bus_formats:      ; @drm_display_info_set_bus_formats
	.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, x2
	mov	x20, x0
	cbnz	x1, LBB0_4
; %bb.1:
	cbz	w19, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_4:
	mov	x21, #0
	cbz	x1, LBB0_7
; %bb.5:
	cbz	w19, LBB0_7
; %bb.6:
	lsl	w8, w19, #2
Lloh2:
	adrp	x9, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x9]
	mov	x0, x1
	mov	x1, x8
	bl	_kmemdup
	mov	x21, x0
	cbz	x0, LBB0_9
LBB0_7:
	ldr	x0, [x20, #8]
	bl	_kfree
	mov	w0, #0
	str	x21, [x20, #8]
	str	w19, [x20]
LBB0_8:
	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
LBB0_9:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
