	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_dc_couple
_tegra_dc_couple:                       ## @tegra_dc_couple
	.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	16(%rdi), %rax
	xorl	%r14d, %r14d
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$1, (%rdi)
	jne	LBB0_8
## %bb.2:
	movq	_DL_FLAG_PM_RUNTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_DL_FLAG_AUTOREMOVE_CONSUMER@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	_tegra_dc_match_by_pipe@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_driver_find_device
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r12
	orl	%r13d, %r15d
	movq	8(%rbx), %rdi
	movq	%rax, %rsi
	movl	%r15d, %edx
	callq	_device_link_add
	movq	8(%rbx), %rbx
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%r12, %rdi
	callq	_dev_name
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dev_dbg
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_5:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_7:
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DL_FLAG_PM_RUNTIME,4,2         ## @DL_FLAG_PM_RUNTIME
	.comm	_DL_FLAG_AUTOREMOVE_CONSUMER,4,2 ## @DL_FLAG_AUTOREMOVE_CONSUMER
	.comm	_tegra_dc_match_by_pipe,4,2     ## @tegra_dc_match_by_pipe
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to link controllers\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"coupled to %s\n"

	.no_dead_strip	_tegra_dc_couple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_dc_couple
_tegra_dc_couple:                       ; @tegra_dc_couple
	.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
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _DL_FLAG_PM_RUNTIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DL_FLAG_PM_RUNTIME@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _DL_FLAG_AUTOREMOVE_CONSUMER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DL_FLAG_AUTOREMOVE_CONSUMER@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _tegra_dc_match_by_pipe@GOTPAGE
Lloh7:
	ldr	x8, [x8, _tegra_dc_match_by_pipe@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x1, #0
	mov	x2, #0
	bl	_driver_find_device
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
	orr	w2, w22, w21
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_device_link_add
	ldr	x19, [x19, #8]
	cbz	x0, LBB0_8
; %bb.4:
	mov	x0, x20
	bl	_dev_name
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_5:
	mov	w0, #0
LBB0_6:
	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_7:
Lloh11:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DL_FLAG_PM_RUNTIME,4,2         ; @DL_FLAG_PM_RUNTIME
	.comm	_DL_FLAG_AUTOREMOVE_CONSUMER,4,2 ; @DL_FLAG_AUTOREMOVE_CONSUMER
	.comm	_tegra_dc_match_by_pipe,4,2     ; @tegra_dc_match_by_pipe
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to link controllers\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"coupled to %s\n"

	.no_dead_strip	_tegra_dc_couple
.subsections_via_symbols
