	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msm_hdmi_bind
_msm_hdmi_bind:                         ## @msm_hdmi_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rdi
	callq	_dev_get_drvdata
	movq	(%rax), %r14
	movq	8(%rbx), %r15
	movq	%rbx, %rdi
	callq	_of_device_get_match_data
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, (%rax)
	leaq	L_.str.2(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	_HDMI_MAX_NUM_GPIO@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	movq	%rax, %r15
	jle	LBB0_14
## %bb.2:
	movq	_msm_hdmi_gpio_pdata@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rax
	movl	12(%rax,%r14), %edx
	movl	%edx, 4(%rcx,%r13)
	movl	8(%rax,%r14), %edx
	movl	%edx, (%rcx,%r13)
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	incq	%rdx
	movq	_HDMI_MAX_NUM_GPIO@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	$24, %r14
	addq	$16, %r13
	cmpq	%rcx, %rdx
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	jge	LBB0_14
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movq	(%rax,%r14), %r15
	movq	_GPIOD_ASIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_devm_gpiod_get_optional
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%r12, %r12
	movq	_msm_hdmi_gpio_pdata@GOTPCREL(%rip), %rbx
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.3(%rip), %rsi
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdx
	callq	_sscanf
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_GPIOD_ASIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_devm_gpiod_get_optional
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_23
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%r12, %r12
	jne	LBB0_11
	jmp	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edi, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_24
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.4(%rip), %rdi
	movq	%r15, %rsi
	callq	_DBG
	xorl	%r12d, %r12d
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_msm_hdmi_gpio_pdata@GOTPCREL(%rip), %rbx
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	16(%r15), %rcx
	movq	%r12, 8(%rcx,%r13)
	testq	%r12, %r12
	je	LBB0_3
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rax
	movl	16(%rax,%r14), %esi
	movq	%r12, %rdi
	callq	_gpiod_set_consumer_name
	movq	16(%r15), %rcx
	jmp	LBB0_3
LBB0_14:
	movq	%r15, (%rbx)
	movq	%rbx, %rdi
	callq	_to_platform_device
	movl	%eax, %edi
	callq	_msm_hdmi_init
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_21
## %bb.15:
	movq	%r15, %rdi
	jmp	LBB0_18
LBB0_16:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_DRM_DEV_ERROR
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_17:
	movq	%r12, %rdi
	jmp	LBB0_18
LBB0_21:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	%r15, (%rax)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_msm_hdmi_register_audio_driver
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_19
## %bb.22:
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
	movq	$0, (%r15)
	jmp	LBB0_19
LBB0_23:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
LBB0_24:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
LBB0_18:
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.20:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown hdmi_cfg: %pOFn\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"core_physical"

L_.str.2:                               ## @.str.2
	.asciz	"qfprom_physical"

	.comm	_HDMI_MAX_NUM_GPIO,4,2          ## @HDMI_MAX_NUM_GPIO
	.comm	_msm_hdmi_gpio_pdata,8,3        ## @msm_hdmi_gpio_pdata
	.comm	_GPIOD_ASIS,4,2                 ## @GPIOD_ASIS
L_.str.3:                               ## @.str.3
	.asciz	"qcom,hdmi-tx-%s"

L_.str.4:                               ## @.str.4
	.asciz	"failed to get gpio: %s"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to attach an audio codec %d\n"

	.no_dead_strip	_msm_hdmi_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msm_hdmi_bind
_msm_hdmi_bind:                         ; @msm_hdmi_bind
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	mov	x0, x1
	bl	_dev_get_drvdata
	ldr	x22, [x0]
	ldr	x21, [x19, #8]
	mov	x0, x19
	bl	_of_device_get_match_data
	cbz	x0, LBB0_15
; %bb.1:
	mov	x20, x0
	str	x22, [sp]                       ; 8-byte Folded Spill
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	stp	x8, x9, [x0]
Lloh7:
	adrp	x26, _HDMI_MAX_NUM_GPIO@GOTPAGE
Lloh8:
	ldr	x26, [x26, _HDMI_MAX_NUM_GPIO@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.2:
	mov	x27, #0
	mov	x28, #0
	mov	x22, #0
Lloh9:
	adrp	x25, _msm_hdmi_gpio_pdata@GOTPAGE
Lloh10:
	ldr	x25, [x25, _msm_hdmi_gpio_pdata@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh11:
	adrp	x21, _GPIOD_ASIS@GOTPAGE
Lloh12:
	ldr	x21, [x21, _GPIOD_ASIS@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	add	x10, x8, x28
	ldr	d0, [x10, #8]
	str	d0, [x9, x27]
	add	x22, x22, #1
	ldrsw	x9, [x26]
	add	x28, x28, #24
	add	x27, x27, #16
	cmp	x22, x9
	b.ge	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x8, x28]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x23
	bl	_devm_gpiod_get_optional
	mov	x24, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	x24, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x2, sp, #8
	mov	x0, x23
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_sscanf
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x21]
	add	x1, sp, #8
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	mov	x24, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	x24, LBB0_11
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_IS_ERR
	cbnz	x0, LBB0_18
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x23
	bl	_DBG
	mov	x24, #0
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x20, #16]
	add	x8, x9, x27
	str	x24, [x8, #8]
	cbz	x24, LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	add	x8, x8, x28
	ldr	w1, [x8, #16]
	mov	x0, x24
	bl	_gpiod_set_consumer_name
	ldr	x9, [x20, #16]
	b	LBB0_3
LBB0_13:
	str	x20, [x19]
	mov	x0, x19
	bl	_to_platform_device
	bl	_msm_hdmi_init
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.14:
	mov	x0, x20
	b	LBB0_20
LBB0_15:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_DRM_DEV_ERROR
Lloh19:
	adrp	x8, _ENXIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_21
LBB0_16:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	str	x20, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_msm_hdmi_register_audio_driver
	cbz	w0, LBB0_21
; %bb.17:
	mov	x1, x0
Lloh22:
	adrp	x0, l_.str.5@PAGE
Lloh23:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DRM_ERROR
	mov	w0, #0
	str	xzr, [x20]
	b	LBB0_21
LBB0_18:
	mov	x24, #0
LBB0_19:
	mov	x0, x24
LBB0_20:
	bl	_PTR_ERR
LBB0_21:
	ldr	x8, [sp, #40]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown hdmi_cfg: %pOFn\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"core_physical"

l_.str.2:                               ; @.str.2
	.asciz	"qfprom_physical"

	.comm	_HDMI_MAX_NUM_GPIO,4,2          ; @HDMI_MAX_NUM_GPIO
	.comm	_msm_hdmi_gpio_pdata,8,3        ; @msm_hdmi_gpio_pdata
	.comm	_GPIOD_ASIS,4,2                 ; @GPIOD_ASIS
l_.str.3:                               ; @.str.3
	.asciz	"qcom,hdmi-tx-%s"

l_.str.4:                               ; @.str.4
	.asciz	"failed to get gpio: %s"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to attach an audio codec %d\n"

	.no_dead_strip	_msm_hdmi_bind
.subsections_via_symbols
