	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sii902x_bridge_attach
_sii902x_bridge_attach:                 ## @sii902x_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_sii902x
	movq	%rax, %r15
	movq	8(%r14), %rbx
	movq	_sii902x_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	callq	_drm_connector_helper_add
	movq	_DRIVER_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_drm_core_check_feature
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_DRM_MODE_CONNECTOR_HDMIA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_sii902x_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_drm_connector_init
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	8(%r15), %rax
	cmpq	$0, (%rax)
	jle	LBB0_4
## %bb.5:
	movq	_DRM_CONNECTOR_POLL_HPD@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	8(%r15), %rdi
	addq	$8, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_4:
	movq	_DRM_CONNECTOR_POLL_CONNECT@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_drm_connector_attach_encoder
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sii902x_connector_helper_funcs,4,2 ## @sii902x_connector_helper_funcs
	.comm	_DRIVER_ATOMIC,4,2              ## @DRIVER_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sii902x driver is only compatible with DRM devices supporting atomic updates\n"

	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_sii902x_connector_funcs,4,2    ## @sii902x_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_HDMIA,4,2   ## @DRM_MODE_CONNECTOR_HDMIA
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ## @DRM_CONNECTOR_POLL_HPD
	.comm	_DRM_CONNECTOR_POLL_CONNECT,4,2 ## @DRM_CONNECTOR_POLL_CONNECT
	.no_dead_strip	_sii902x_bridge_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sii902x_bridge_attach
_sii902x_bridge_attach:                 ; @sii902x_bridge_attach
	.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, x0
	bl	_bridge_to_sii902x
	mov	x20, x0
	ldr	x21, [x19, #8]
Lloh0:
	adrp	x1, _sii902x_connector_helper_funcs@GOTPAGE
Lloh1:
	ldr	x1, [x1, _sii902x_connector_helper_funcs@GOTPAGEOFF]
	bl	_drm_connector_helper_add
Lloh2:
	adrp	x8, _DRIVER_ATOMIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRIVER_ATOMIC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_drm_core_check_feature
	cbz	w0, LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x2, _sii902x_connector_funcs@GOTPAGE
Lloh9:
	ldr	x2, [x2, _sii902x_connector_funcs@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x20
	bl	_drm_connector_init
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	x8, [x20, #8]
Lloh10:
	adrp	x9, _DRM_CONNECTOR_POLL_HPD@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DRM_CONNECTOR_POLL_HPD@GOTPAGEOFF]
Lloh12:
	adrp	x10, _DRM_CONNECTOR_POLL_CONNECT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _DRM_CONNECTOR_POLL_CONNECT@GOTPAGEOFF]
	ldr	x8, [x8]
	cmp	x8, #0
	csel	x8, x9, x10, gt
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	w1, [x19]
	mov	x0, x20
	bl	_drm_connector_attach_encoder
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	ldr	x8, [x20, #8]
	add	x0, x8, #8
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh16:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_sii902x_connector_helper_funcs,4,2 ; @sii902x_connector_helper_funcs
	.comm	_DRIVER_ATOMIC,4,2              ; @DRIVER_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sii902x driver is only compatible with DRM devices supporting atomic updates\n"

	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_sii902x_connector_funcs,4,2    ; @sii902x_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_HDMIA,4,2   ; @DRM_MODE_CONNECTOR_HDMIA
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ; @DRM_CONNECTOR_POLL_HPD
	.comm	_DRM_CONNECTOR_POLL_CONNECT,4,2 ; @DRM_CONNECTOR_POLL_CONNECT
	.no_dead_strip	_sii902x_bridge_attach
.subsections_via_symbols
