	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function anx78xx_bridge_attach
_anx78xx_bridge_attach:                 ## @anx78xx_bridge_attach
	.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	%rdi, %r14
	callq	_bridge_to_anx78xx
	cmpl	$0, (%r14)
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$8, %rdi
	leaq	L_.str.1(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	32(%rbx), %rax
	movq	%rax, 24(%rbx)
	movq	_anx78xx_aux_transfer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	callq	_drm_dp_aux_register
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	4(%r14), %edi
	movq	_DRM_MODE_CONNECTOR_DisplayPort@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_anx78xx_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%rbx, %rsi
	callq	_drm_connector_init
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_3:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_11
LBB0_6:
	movq	_anx78xx_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_drm_connector_helper_add
	movq	%rbx, %rdi
	callq	_drm_connector_register
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_11
LBB0_8:
	movq	_DRM_CONNECTOR_POLL_HPD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_drm_connector_attach_encoder
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %rdi
LBB0_11:
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%r15d, %r15d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Parent encoder object not found"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"DP-AUX"

	.comm	_anx78xx_aux_transfer,4,2       ## @anx78xx_aux_transfer
L_.str.2:                               ## @.str.2
	.asciz	"Failed to register aux channel: %d\n"

	.comm	_anx78xx_connector_funcs,4,2    ## @anx78xx_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_DisplayPort,4,2 ## @DRM_MODE_CONNECTOR_DisplayPort
L_.str.3:                               ## @.str.3
	.asciz	"Failed to initialize connector: %d\n"

	.comm	_anx78xx_connector_helper_funcs,4,2 ## @anx78xx_connector_helper_funcs
L_.str.4:                               ## @.str.4
	.asciz	"Failed to register connector: %d\n"

	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ## @DRM_CONNECTOR_POLL_HPD
L_.str.5:                               ## @.str.5
	.asciz	"Failed to link up connector to encoder: %d\n"

	.no_dead_strip	_anx78xx_bridge_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function anx78xx_bridge_attach
_anx78xx_bridge_attach:                 ; @anx78xx_bridge_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_bridge_to_anx78xx
	ldr	w8, [x19]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x0, #8]!
	ldr	x8, [x0, #24]
	str	x8, [x0, #16]
Lloh2:
	adrp	x8, _anx78xx_aux_transfer@GOTPAGE
Lloh3:
	ldr	x8, [x8, _anx78xx_aux_transfer@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	bl	_drm_dp_aux_register
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	w0, [x19, #4]
Lloh5:
	adrp	x8, _DRM_MODE_CONNECTOR_DisplayPort@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_DisplayPort@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x2, _anx78xx_connector_funcs@GOTPAGE
Lloh9:
	ldr	x2, [x2, _anx78xx_connector_funcs@GOTPAGEOFF]
	mov	x1, x20
	bl	_drm_connector_init
	cbz	w0, LBB0_6
; %bb.3:
	mov	x21, x0
	str	x21, [sp]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_4:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_5:
	mov	x21, x0
	str	x21, [sp]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_11
LBB0_6:
Lloh19:
	adrp	x1, _anx78xx_connector_helper_funcs@GOTPAGE
Lloh20:
	ldr	x1, [x1, _anx78xx_connector_helper_funcs@GOTPAGEOFF]
	mov	x0, x20
	bl	_drm_connector_helper_add
	mov	x0, x20
	bl	_drm_connector_register
	cbz	w0, LBB0_8
; %bb.7:
	mov	x21, x0
	str	x21, [sp]
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh23:
	adrp	x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	w1, [x19]
	mov	x0, x20
	bl	_drm_connector_attach_encoder
	mov	x21, x0
	cbz	w0, LBB0_11
; %bb.9:
	str	x21, [sp]
Lloh26:
	adrp	x0, l_.str.5@PAGE
Lloh27:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_10:
	bl	_DRM_ERROR
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_11:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Parent encoder object not found"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"DP-AUX"

	.comm	_anx78xx_aux_transfer,4,2       ; @anx78xx_aux_transfer
l_.str.2:                               ; @.str.2
	.asciz	"Failed to register aux channel: %d\n"

	.comm	_anx78xx_connector_funcs,4,2    ; @anx78xx_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_DisplayPort,4,2 ; @DRM_MODE_CONNECTOR_DisplayPort
l_.str.3:                               ; @.str.3
	.asciz	"Failed to initialize connector: %d\n"

	.comm	_anx78xx_connector_helper_funcs,4,2 ; @anx78xx_connector_helper_funcs
l_.str.4:                               ; @.str.4
	.asciz	"Failed to register connector: %d\n"

	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ; @DRM_CONNECTOR_POLL_HPD
l_.str.5:                               ; @.str.5
	.asciz	"Failed to link up connector to encoder: %d\n"

	.no_dead_strip	_anx78xx_bridge_attach
.subsections_via_symbols
