	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_hdmi_i2c_adapter
_dw_hdmi_i2c_adapter:                   ## @dw_hdmi_i2c_adapter
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	leaq	36(%rax), %rdi
	callq	_mutex_init
	movq	%rbx, %rdi
	addq	$32, %rdi
	callq	_init_completion
	movq	_I2C_CLASS_DDC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	(%r14), %eax
	movl	%eax, 16(%rbx)
	movq	_dw_hdmi_algorithm@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_adapdata
	movq	%rbx, %rdi
	callq	_i2c_add_adapter
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r15d
	movl	(%r14), %edi
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_devm_kfree
	movl	%r15d, %edi
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_5:
	movq	%rbx, 8(%r14)
	movl	(%r14), %edi
	movl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_info
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_I2C_CLASS_DDC,4,2              ## @I2C_CLASS_DDC
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_dw_hdmi_algorithm,4,2          ## @dw_hdmi_algorithm
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DesignWare HDMI"

L_.str.1:                               ## @.str.1
	.asciz	"cannot add %s I2C adapter\n"

L_.str.2:                               ## @.str.2
	.asciz	"registered %s I2C bus driver\n"

	.no_dead_strip	_dw_hdmi_i2c_adapter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_hdmi_i2c_adapter
_dw_hdmi_i2c_adapter:                   ; @dw_hdmi_i2c_adapter
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x0, x0, #36
	bl	_mutex_init
	add	x0, x19, #32
	bl	_init_completion
Lloh3:
	adrp	x8, _I2C_CLASS_DDC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_CLASS_DDC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh6:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x20]
	stp	w9, w8, [x19, #16]
Lloh9:
	adrp	x8, _dw_hdmi_algorithm@GOTPAGE
Lloh10:
	ldr	x8, [x8, _dw_hdmi_algorithm@GOTPAGEOFF]
	str	x8, [x19, #8]
	ldr	w0, [x19]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strlcpy
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_adapdata
	mov	x0, x19
	bl	_i2c_add_adapter
	cbz	w0, LBB0_5
; %bb.2:
	mov	x21, x0
	ldr	w0, [x20]
	ldr	w2, [x19]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
	ldr	w0, [x20]
	mov	x1, x19
	bl	_devm_kfree
	mov	x0, x21
	b	LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_5:
	str	x19, [x20, #8]
	ldr	w0, [x20]
	ldr	w2, [x19]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_I2C_CLASS_DDC,4,2              ; @I2C_CLASS_DDC
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_dw_hdmi_algorithm,4,2          ; @dw_hdmi_algorithm
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DesignWare HDMI"

l_.str.1:                               ; @.str.1
	.asciz	"cannot add %s I2C adapter\n"

l_.str.2:                               ; @.str.2
	.asciz	"registered %s I2C bus driver\n"

	.no_dead_strip	_dw_hdmi_i2c_adapter
.subsections_via_symbols
