	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xen_drm_front_cfg_card         ## -- Begin function xen_drm_front_cfg_card
	.p2align	4, 0x90
_xen_drm_front_cfg_card:                ## @xen_drm_front_cfg_card
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movl	(%r12), %edi
	movq	_XENDISPL_FIELD_BE_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_xenbus_read_unsigned
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_INFO
	movl	$1, (%r15)
LBB0_2:
	movq	$0, 8(%r15)
	movq	16(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_6
## %bb.3:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rsi
	addq	%r13, %rsi
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_cfg_connector
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	8(%r15)
	incq	%rbx
	movq	16(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_6:
	xorl	%eax, %eax
	cmpq	$0, 8(%r15)
	jne	LBB0_8
## %bb.7:
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XENDISPL_FIELD_BE_ALLOC,4,2    ## @XENDISPL_FIELD_BE_ALLOC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Backend can provide display buffers\n"

L_.str.1:                               ## @.str.1
	.asciz	"No connector(s) configured at %s\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xen_drm_front_cfg_card         ; -- Begin function xen_drm_front_cfg_card
	.p2align	2
_xen_drm_front_cfg_card:                ; @xen_drm_front_cfg_card
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0]
	ldr	w0, [x22]
Lloh0:
	adrp	x8, _XENDISPL_FIELD_BE_ALLOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XENDISPL_FIELD_BE_ALLOC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_xenbus_read_unsigned
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_INFO
	mov	w8, #1
	str	w8, [x19]
LBB0_2:
	str	xzr, [x19, #8]
	ldr	x0, [x19, #16]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x23, #0
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x1, x8, x23
	ldr	w2, [x22]
	mov	x0, x20
	mov	x3, x21
	bl	_cfg_connector
	tbnz	w0, #31, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x8, x0, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	add	x23, x23, #4
	cmp	x21, w0, sxtw
	b.lt	LBB0_4
LBB0_6:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	ldr	w1, [x22]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_XENDISPL_FIELD_BE_ALLOC,4,2    ; @XENDISPL_FIELD_BE_ALLOC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Backend can provide display buffers\n"

l_.str.1:                               ; @.str.1
	.asciz	"No connector(s) configured at %s\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
