	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_txp_bind
_vc4_txp_bind:                          ## @vc4_txp_bind
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_to_platform_device
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_to_vc4_dev
	movq	%rax, %rbx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%r15, 24(%rax)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_vc4_ioremap_regs
	movl	%eax, 16(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	16(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_5
## %bb.9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movl	%r13d, %eax
	jmp	LBB0_8
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_5:
	movl	%edi, 8(%rbx)
	movq	_txp_regs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, (%rbx)
	movq	%rbx, %r15
	addq	$12, %r15
	movq	_vc4_txp_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_drm_connector_helper_add
	movq	_drm_fmts@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_ARRAY_SIZE
	movq	_vc4_txp_connector_funcs@GOTPCREL(%rip), %rdx
	movq	_vc4_txp_encoder_helper_funcs@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r9d
	callq	_drm_writeback_connector_init
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	_vc4_txp_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r12, %rdi
	callq	_dev_name
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movq	%rbx, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_dev_set_drvdata
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_vc4_debugfs_add_regset32
	xorl	%eax, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_txp_regs,4,2                   ## @txp_regs
	.comm	_vc4_txp_connector_helper_funcs,4,2 ## @vc4_txp_connector_helper_funcs
	.comm	_vc4_txp_connector_funcs,4,2    ## @vc4_txp_connector_funcs
	.comm	_vc4_txp_encoder_helper_funcs,4,2 ## @vc4_txp_encoder_helper_funcs
	.comm	_drm_fmts,4,2                   ## @drm_fmts
	.comm	_vc4_txp_interrupt,4,2          ## @vc4_txp_interrupt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"txp_regs"

	.no_dead_strip	_vc4_txp_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_txp_bind
_vc4_txp_bind:                          ; @vc4_txp_bind
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	bl	_to_platform_device
	mov	x24, x0
	mov	x0, x20
	bl	_dev_get_drvdata
	mov	x20, x0
	bl	_to_vc4_dev
	mov	x21, x0
	mov	x0, x24
	mov	w1, #0
	bl	_platform_get_irq
	mov	x23, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
	str	x24, [x0, #24]
	mov	x0, x24
	mov	w1, #0
	bl	_vc4_ioremap_regs
	str	w0, [x22, #16]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x22, #16]
	cbz	x8, LBB0_6
; %bb.3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_4:
	mov	x0, x23
	b	LBB0_9
LBB0_5:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_6:
Lloh6:
	adrp	x8, _txp_regs@GOTPAGE
Lloh7:
	ldr	x8, [x8, _txp_regs@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w8, w0, [x22, #4]
	mov	x0, x8
	bl	_ARRAY_SIZE
	str	w0, [x22]
	add	x24, x22, #12
Lloh9:
	adrp	x1, _vc4_txp_connector_helper_funcs@GOTPAGE
Lloh10:
	ldr	x1, [x1, _vc4_txp_connector_helper_funcs@GOTPAGEOFF]
	mov	x0, x24
	bl	_drm_connector_helper_add
Lloh11:
	adrp	x8, _drm_fmts@GOTPAGE
Lloh12:
	ldr	x8, [x8, _drm_fmts@GOTPAGEOFF]
Lloh13:
	ldr	w25, [x8]
	mov	x0, x25
	bl	_ARRAY_SIZE
	mov	x5, x0
Lloh14:
	adrp	x2, _vc4_txp_connector_funcs@GOTPAGE
Lloh15:
	ldr	x2, [x2, _vc4_txp_connector_funcs@GOTPAGEOFF]
Lloh16:
	adrp	x3, _vc4_txp_encoder_helper_funcs@GOTPAGE
Lloh17:
	ldr	x3, [x3, _vc4_txp_encoder_helper_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x24
	mov	x4, x25
	bl	_drm_writeback_connector_init
	cbnz	w0, LBB0_9
; %bb.7:
Lloh18:
	adrp	x8, _vc4_txp_interrupt@GOTPAGE
Lloh19:
	ldr	x8, [x8, _vc4_txp_interrupt@GOTPAGEOFF]
Lloh20:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x4, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	mov	w3, #0
	mov	x5, x22
	bl	_devm_request_irq
	cbnz	w0, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x22
	bl	_dev_set_drvdata
	str	x22, [x21]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_vc4_debugfs_add_regset32
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_txp_regs,4,2                   ; @txp_regs
	.comm	_vc4_txp_connector_helper_funcs,4,2 ; @vc4_txp_connector_helper_funcs
	.comm	_vc4_txp_connector_funcs,4,2    ; @vc4_txp_connector_funcs
	.comm	_vc4_txp_encoder_helper_funcs,4,2 ; @vc4_txp_encoder_helper_funcs
	.comm	_drm_fmts,4,2                   ; @drm_fmts
	.comm	_vc4_txp_interrupt,4,2          ; @vc4_txp_interrupt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"txp_regs"

	.no_dead_strip	_vc4_txp_bind
.subsections_via_symbols
