	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun4i_tmds_create              ## -- Begin function sun4i_tmds_create
	.p2align	4, 0x90
_sun4i_tmds_create:                     ## @sun4i_tmds_create
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movl	20(%rdi), %edi
	callq	___clk_get_name
	movq	%rax, -32(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movl	16(%rbx), %edi
	callq	___clk_get_name
	movq	%rax, -24(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movl	4(%rbx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	L_.str(%rip), %rcx
	movq	%rcx, -64(%rbp)
	movq	_sun4i_tmds_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, -40(%rbp)
	leaq	-32(%rbp), %rcx
	movq	%rcx, -56(%rbp)
	movl	$2, -48(%rbp)
	movq	_CLK_SET_RATE_PARENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)
	movq	%rbx, 16(%rax)
	leaq	-64(%rbp), %rcx
	movq	%rcx, (%rax)
	movq	8(%rbx), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movl	4(%rbx), %edi
	movq	%rax, %rsi
	callq	_devm_clk_register
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	(%rbx), %edi
	callq	_PTR_ERR
	jmp	LBB0_9
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hdmi-tmds"

	.comm	_sun4i_tmds_ops,4,2             ## @sun4i_tmds_ops
	.comm	_CLK_SET_RATE_PARENT,4,2        ## @CLK_SET_RATE_PARENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun4i_tmds_create              ; -- Begin function sun4i_tmds_create
	.p2align	2
_sun4i_tmds_create:                     ; @sun4i_tmds_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	w0, [x0, #20]
	bl	___clk_get_name
	str	x0, [sp, #40]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w0, [x19, #16]
	bl	___clk_get_name
	str	x0, [sp, #48]
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x1, x0
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
Lloh8:
	adrp	x9, _sun4i_tmds_ops@GOTPAGE
Lloh9:
	ldr	x9, [x9, _sun4i_tmds_ops@GOTPAGEOFF]
	str	x9, [sp, #32]
	add	x9, sp, #40
	stp	x8, x9, [sp, #8]
	mov	w8, #2
Lloh10:
	adrp	x9, _CLK_SET_RATE_PARENT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CLK_SET_RATE_PARENT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #24]
	str	x19, [x0, #16]
	add	x8, sp, #8
	str	x8, [x0]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	w8, [x0, #8]
	ldr	w0, [x19, #4]
	bl	_devm_clk_register
	str	w0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w0, [x19]
	bl	_PTR_ERR
	b	LBB0_7
LBB0_5:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldur	x8, [x29, #-24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hdmi-tmds"

	.comm	_sun4i_tmds_ops,4,2             ; @sun4i_tmds_ops
	.comm	_CLK_SET_RATE_PARENT,4,2        ; @CLK_SET_RATE_PARENT
.subsections_via_symbols
