	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zx_hdmi_bind
_zx_hdmi_bind:                          ## @zx_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	$24, %rsp
	.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, %r15
	callq	_to_platform_device
	movq	%rax, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, 8(%rax)
	movq	%r12, 40(%rax)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 32(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	32(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_DRM_DEV_ERROR
	jmp	LBB0_6
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_devm_clk_get
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	24(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_10:
	movq	8(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_devm_clk_get
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	16(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_3
LBB0_12:
	movq	8(%rbx), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_devm_clk_get
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_3
LBB0_14:
	movq	%rbx, %rdi
	callq	_zx_hdmi_ddc_register
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %r13d
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_18
LBB0_16:
	movq	%rbx, %rdi
	callq	_zx_hdmi_audio_register
	testl	%eax, %eax
	je	LBB0_19
## %bb.17:
	movl	%eax, %r13d
	leaq	L_.str.8(%rip), %rsi
LBB0_18:
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_DRM_DEV_ERROR
	movl	%r13d, %r14d
	jmp	LBB0_6
LBB0_19:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_zx_hdmi_register
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	%eax, %r12d
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_DRM_DEV_ERROR
	movl	%r12d, %r14d
	jmp	LBB0_6
LBB0_21:
	movq	_zx_hdmi_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_zx_hdmi_irq_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_dev_name
	movq	%rbx, (%rsp)
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	movl	%eax, %r9d
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movl	%eax, %r14d
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_3
LBB0_23:
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to remap hdmi region: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"osc_cec"

L_.str.2:                               ## @.str.2
	.asciz	"failed to get cec_clk: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"osc_clk"

L_.str.4:                               ## @.str.4
	.asciz	"failed to get osc_clk: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"xclk"

L_.str.6:                               ## @.str.6
	.asciz	"failed to get xclk: %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"failed to register ddc: %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"failed to register audio: %d\n"

L_.str.9:                               ## @.str.9
	.asciz	"failed to register hdmi: %d\n"

	.comm	_zx_hdmi_irq_handler,4,2        ## @zx_hdmi_irq_handler
	.comm	_zx_hdmi_irq_thread,4,2         ## @zx_hdmi_irq_thread
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.10:                              ## @.str.10
	.asciz	"failed to request threaded irq: %d\n"

	.no_dead_strip	_zx_hdmi_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zx_hdmi_bind
_zx_hdmi_bind:                          ; @zx_hdmi_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	x22, x2
	mov	x19, x0
	bl	_to_platform_device
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	str	x19, [x0, #8]
	str	x22, [x0, #40]
	mov	x0, x19
	mov	x1, x21
	bl	_dev_set_drvdata
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x21, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x0, [x21, #32]
	bl	_PTR_ERR
	mov	x20, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	mov	x0, x19
	mov	x2, x20
	bl	_DRM_DEV_ERROR
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x20
	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_6:
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	mov	x20, x0
	tbnz	w0, #31, LBB0_5
; %bb.7:
	ldr	x0, [x21, #8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_devm_clk_get
	str	x0, [x21, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x21, #24]
	bl	_PTR_ERR
	mov	x20, x0
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_9:
	ldr	x0, [x21, #8]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_devm_clk_get
	str	x0, [x21, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x0, [x21, #16]
	bl	_PTR_ERR
	mov	x20, x0
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_3
LBB0_11:
	ldr	x0, [x21, #8]
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_devm_clk_get
	str	x0, [x21]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.12:
	ldr	x0, [x21]
	bl	_PTR_ERR
	mov	x20, x0
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_3
LBB0_13:
	mov	x0, x21
	bl	_zx_hdmi_ddc_register
	cbz	w0, LBB0_15
; %bb.14:
	mov	x23, x0
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_17
LBB0_15:
	mov	x0, x21
	bl	_zx_hdmi_audio_register
	cbz	w0, LBB0_18
; %bb.16:
	mov	x23, x0
Lloh25:
	adrp	x1, l_.str.8@PAGE
Lloh26:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_17:
	mov	x0, x19
	mov	x2, x23
	bl	_DRM_DEV_ERROR
	mov	x20, x23
	b	LBB0_5
LBB0_18:
	mov	x0, x22
	mov	x1, x21
	bl	_zx_hdmi_register
	cbz	w0, LBB0_20
; %bb.19:
	mov	x22, x0
Lloh27:
	adrp	x1, l_.str.9@PAGE
Lloh28:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_DRM_DEV_ERROR
	mov	x20, x22
	b	LBB0_5
LBB0_20:
Lloh29:
	adrp	x8, _zx_hdmi_irq_handler@GOTPAGE
Lloh30:
	ldr	x8, [x8, _zx_hdmi_irq_handler@GOTPAGEOFF]
Lloh31:
	ldr	w22, [x8]
Lloh32:
	adrp	x8, _zx_hdmi_irq_thread@GOTPAGE
Lloh33:
	ldr	x8, [x8, _zx_hdmi_irq_thread@GOTPAGEOFF]
Lloh34:
	ldr	w23, [x8]
Lloh35:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh37:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x5, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	mov	x4, x24
	mov	x6, x21
	bl	_devm_request_threaded_irq
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.21:
Lloh38:
	adrp	x1, l_.str.10@PAGE
Lloh39:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to remap hdmi region: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"osc_cec"

l_.str.2:                               ; @.str.2
	.asciz	"failed to get cec_clk: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"osc_clk"

l_.str.4:                               ; @.str.4
	.asciz	"failed to get osc_clk: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"xclk"

l_.str.6:                               ; @.str.6
	.asciz	"failed to get xclk: %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"failed to register ddc: %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"failed to register audio: %d\n"

l_.str.9:                               ; @.str.9
	.asciz	"failed to register hdmi: %d\n"

	.comm	_zx_hdmi_irq_handler,4,2        ; @zx_hdmi_irq_handler
	.comm	_zx_hdmi_irq_thread,4,2         ; @zx_hdmi_irq_thread
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.10:                              ; @.str.10
	.asciz	"failed to request threaded irq: %d\n"

	.no_dead_strip	_zx_hdmi_bind
.subsections_via_symbols
