	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun4i_ddc_create               ## -- Begin function sun4i_ddc_create
	.p2align	4, 0x90
_sun4i_ddc_create:                      ## @sun4i_ddc_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	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	___clk_get_name
	movq	%rax, -24(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movl	4(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movl	4(%r14), %edi
	movl	16(%r14), %esi
	movq	8(%r14), %rax
	movl	8(%rax), %edx
	callq	_devm_regmap_field_alloc
	movl	%eax, 24(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.10:
	movl	24(%rbx), %edi
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rax
	movq	%rax, -56(%rbp)
	movq	_sun4i_ddc_ops@GOTPCREL(%rip), %rax
	movq	%rax, -32(%rbp)
	leaq	-24(%rbp), %rax
	movq	%rax, -48(%rbp)
	movl	$1, -40(%rbp)
	movq	%r14, 16(%rbx)
	leaq	-56(%rbp), %rax
	movq	%rax, (%rbx)
	movq	8(%r14), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 12(%rbx)
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	4(%r14), %edi
	movq	%rbx, %rsi
	callq	_devm_clk_register
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	(%r14), %edi
	callq	_PTR_ERR
	jmp	LBB0_9
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_9
	.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-ddc"

	.comm	_sun4i_ddc_ops,4,2              ## @sun4i_ddc_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun4i_ddc_create               ; -- Begin function sun4i_ddc_create
	.p2align	2
_sun4i_ddc_create:                      ; @sun4i_ddc_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	mov	x0, x1
	bl	___clk_get_name
	str	x0, [sp, #8]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	ldr	w0, [x19, #4]
	ldr	w1, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	w2, [x8, #8]
	bl	_devm_regmap_field_alloc
	str	w0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w0, [x20, #24]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_4:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
Lloh7:
	adrp	x8, l_.str@PAGE
Lloh8:
	add	x8, x8, l_.str@PAGEOFF
Lloh9:
	adrp	x9, _sun4i_ddc_ops@GOTPAGE
Lloh10:
	ldr	x9, [x9, _sun4i_ddc_ops@GOTPAGEOFF]
	str	x9, [sp, #40]
	add	x9, sp, #8
	stp	x8, x9, [sp, #16]
	mov	w8, #1
	str	w8, [sp, #32]
	str	x19, [x20, #16]
	add	x8, sp, #16
	str	x8, [x20]
	ldr	x8, [x19, #8]
	ldr	d0, [x8]
	str	d0, [x20, #8]
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_devm_clk_register
	str	w0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.9:
	ldr	w0, [x19]
	bl	_PTR_ERR
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.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-ddc"

	.comm	_sun4i_ddc_ops,4,2              ; @sun4i_ddc_ops
.subsections_via_symbols
