	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_sysfs_connector_add        ## -- Begin function drm_sysfs_connector_add
	.p2align	4, 0x90
_drm_sysfs_connector_add:               ## @drm_sysfs_connector_add
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, 8(%rdi)
	je	LBB0_1
LBB0_3:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	movq	_drm_class@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movl	(%rax), %r10d
	movl	4(%rax), %esi
	movq	_connector_dev_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	16(%rbx), %eax
	leaq	L_.str(%rip), %r9
	xorl	%edx, %edx
	movq	%rbx, %rcx
	pushq	%rax
	pushq	%r10
	callq	_device_create_with_groups
	addq	$16, %rsp
	movq	%rax, 8(%rbx)
	movl	16(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG
	movq	8(%rbx), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	8(%rbx), %rdi
	callq	_PTR_ERR
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
	movq	8(%rbx), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movq	%r14, %rdi
	callq	_drm_sysfs_hotplug_event
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.5:
	movq	8(%rbx), %rdi
	leaq	L_.str.3(%rip), %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sysfs_create_link              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_drm_class,4,2                  ## @drm_class
	.comm	_connector_dev_groups,4,2       ## @connector_dev_groups
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"card%d-%s"

L_.str.1:                               ## @.str.1
	.asciz	"adding \"%s\" to sysfs\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to register connector device: %ld\n"

L_.str.3:                               ## @.str.3
	.asciz	"ddc"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_sysfs_connector_add        ; -- Begin function drm_sysfs_connector_add
	.p2align	2
_drm_sysfs_connector_add:               ; @drm_sysfs_connector_add
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	ldr	x20, [x0, #24]
Lloh0:
	adrp	x8, _drm_class@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drm_class@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _connector_dev_groups@GOTPAGE
Lloh4:
	ldr	x9, [x9, _connector_dev_groups@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x9]
	ldp	w6, w1, [x8]
	ldr	w7, [x19, #16]
Lloh6:
	adrp	x5, l_.str@PAGE
Lloh7:
	add	x5, x5, l_.str@PAGEOFF
	mov	w2, #0
	mov	x3, x19
	bl	_device_create_with_groups
	str	x0, [x19, #8]
	ldr	w1, [x19, #16]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG
	ldr	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_PTR_ERR
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
	ldr	x0, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_4:
	mov	x0, x20
	bl	_drm_sysfs_hotplug_event
	ldr	x1, [x19]
	cbz	x1, LBB0_1
; %bb.5:
	ldr	x0, [x19, #8]
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sysfs_create_link
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_drm_class,4,2                  ; @drm_class
	.comm	_connector_dev_groups,4,2       ; @connector_dev_groups
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"card%d-%s"

l_.str.1:                               ; @.str.1
	.asciz	"adding \"%s\" to sysfs\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to register connector device: %ld\n"

l_.str.3:                               ; @.str.3
	.asciz	"ddc"

.subsections_via_symbols
