	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_i2c_create_dp           ## -- Begin function radeon_i2c_create_dp
	.p2align	4, 0x90
_radeon_i2c_create_dp:                  ## @radeon_i2c_create_dp
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movl	(%r12), %eax
	movl	%eax, 56(%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_I2C_CLASS_DDC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	(%r15), %rax
	movq	%rax, 16(%rbx)
	movq	%r15, 48(%rbx)
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	movq	%r14, %rcx
	callq	_snprintf
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_adapdata
	movq	%rbx, %rax
	addq	$32, %rax
	movq	%rax, (%rbx)
	movq	_radeon_dp_i2c_aux_ch@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	$0, 32(%rbx)
	movq	%rbx, %rdi
	callq	_i2c_dp_aux_add_bus
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_DRM_INFO
	movq	%rbx, %rdi
	callq	_kfree
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_I2C_CLASS_DDC,4,2              ## @I2C_CLASS_DDC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Radeon aux bus %s"

	.comm	_radeon_dp_i2c_aux_ch,4,2       ## @radeon_dp_i2c_aux_ch
L_.str.1:                               ## @.str.1
	.asciz	"Failed to register i2c %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_i2c_create_dp           ; -- Begin function radeon_i2c_create_dp
	.p2align	2
_radeon_i2c_create_dp:                  ; @radeon_i2c_create_dp
	.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, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x22]
	str	w8, [x19, #56]
Lloh3:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _I2C_CLASS_DDC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I2C_CLASS_DDC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
	ldr	x8, [x21]
	str	x8, [x19, #16]
	str	x21, [x19, #48]
	ldr	w0, [x19, #8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	mov	x3, x20
	bl	_snprintf
	mov	x0, x19
	mov	x1, x19
	bl	_i2c_set_adapdata
	mov	x8, x19
	str	xzr, [x8, #32]!
	str	x8, [x19]
Lloh11:
	adrp	x8, _radeon_dp_i2c_aux_ch@GOTPAGE
Lloh12:
	ldr	x8, [x8, _radeon_dp_i2c_aux_ch@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	mov	x0, x19
	bl	_i2c_dp_aux_add_bus
	cbz	w0, LBB0_3
; %bb.2:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_DRM_INFO
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_3:
	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 AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_I2C_CLASS_DDC,4,2              ; @I2C_CLASS_DDC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Radeon aux bus %s"

	.comm	_radeon_dp_i2c_aux_ch,4,2       ; @radeon_dp_i2c_aux_ch
l_.str.1:                               ; @.str.1
	.asciz	"Failed to register i2c %s\n"

.subsections_via_symbols
