	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sti_hda_bind
_sti_hda_bind:                          ## @sti_hda_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rdi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	%r12, (%rax)
	movq	%r12, %rdi
	callq	_sti_hda_find_encoder
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r13
	movq	%r14, 8(%rax)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r14, 8(%rax)
	movq	_sti_hda_bridge_funcs@GOTPCREL(%rip), %rcx
	movq	%rcx, (%rax)
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_drm_bridge_attach
	movq	%r15, (%r13)
	movq	_DRM_CONNECTOR_POLL_HPD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	_DRM_MODE_CONNECTOR_Component@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_sti_hda_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_drm_connector_init
	movq	_sti_hda_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_drm_connector_helper_add
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_drm_connector_attach_encoder
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_6:
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_hda_enable_hd_dacs
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_sti_hda_bridge_funcs,4,2       ## @sti_hda_bridge_funcs
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ## @DRM_CONNECTOR_POLL_HPD
	.comm	_sti_hda_connector_funcs,4,2    ## @sti_hda_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_Component,4,2 ## @DRM_MODE_CONNECTOR_Component
	.comm	_sti_hda_connector_helper_funcs,4,2 ## @sti_hda_connector_helper_funcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to attach a connector to a encoder\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_sti_hda_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sti_hda_bind
_sti_hda_bind:                          ; @sti_hda_bind
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x23, x0
	bl	_dev_get_drvdata
	mov	x19, x0
	str	x21, [x0]
	mov	x0, x21
	bl	_sti_hda_find_encoder
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x23
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
	str	x19, [x0, #8]
	ldr	w2, [x24]
	mov	x0, x23
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x1, x0
Lloh2:
	adrp	x8, _sti_hda_bridge_funcs@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sti_hda_bridge_funcs@GOTPAGEOFF]
	stp	x8, x19, [x0]
	mov	x0, x20
	mov	x2, #0
	bl	_drm_bridge_attach
Lloh4:
	adrp	x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGEOFF]
	str	x20, [x22]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x22]
Lloh7:
	adrp	x8, _DRM_MODE_CONNECTOR_Component@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_Component@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
Lloh10:
	adrp	x2, _sti_hda_connector_funcs@GOTPAGE
Lloh11:
	ldr	x2, [x2, _sti_hda_connector_funcs@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x22
	bl	_drm_connector_init
Lloh12:
	adrp	x1, _sti_hda_connector_helper_funcs@GOTPAGE
Lloh13:
	ldr	x1, [x1, _sti_hda_connector_helper_funcs@GOTPAGEOFF]
	mov	x0, x22
	bl	_drm_connector_helper_add
	mov	x0, x22
	mov	x1, x20
	bl	_drm_connector_attach_encoder
	cbz	w0, LBB0_8
; %bb.4:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	bl	_hda_enable_hd_dacs
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_sti_hda_bridge_funcs,4,2       ; @sti_hda_bridge_funcs
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ; @DRM_CONNECTOR_POLL_HPD
	.comm	_sti_hda_connector_funcs,4,2    ; @sti_hda_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_Component,4,2 ; @DRM_MODE_CONNECTOR_Component
	.comm	_sti_hda_connector_helper_funcs,4,2 ; @sti_hda_connector_helper_funcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to attach a connector to a encoder\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_sti_hda_bind
.subsections_via_symbols
