	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_i2c_create              ## -- Begin function amdgpu_i2c_create
	.p2align	4, 0x90
_amdgpu_i2c_create:                     ## @amdgpu_i2c_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	cmpq	$0, 8(%rsi)
	movq	_amdgpu_hw_i2c@GOTPCREL(%rip), %r13
	je	LBB0_2
## %bb.1:
	cmpq	$0, (%r13)
	je	LBB0_9
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$120, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %rbx
	movups	(%r15), %xmm0
	movups	%xmm0, 104(%rax)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_I2C_CLASS_DDC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	(%r12), %rax
	movq	%rax, 24(%rbx)
	movq	%r12, 96(%rbx)
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_adapdata
	leaq	88(%rbx), %rdi
	callq	_mutex_init
	cmpq	$0, (%r15)
	movl	8(%rbx), %edi
	je	LBB0_6
## %bb.4:
	cmpq	$0, (%r13)
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	movq	%r14, %rcx
	callq	_snprintf
	movq	_amdgpu_atombios_i2c_algo@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_i2c_add_adapter
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	movq	%r14, %rcx
	callq	_snprintf
	movq	%rbx, %rax
	addq	$40, %rax
	movq	%rax, (%rbx)
	movq	_amdgpu_i2c_pre_xfer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	movq	_amdgpu_i2c_post_xfer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%rbx)
	movq	_amdgpu_i2c_set_data@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	_amdgpu_i2c_set_clock@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	movq	_amdgpu_i2c_get_data@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	_amdgpu_i2c_get_clock@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%rbx)
	movl	$10, 40(%rbx)
	movl	$2200, %edi                     ## imm = 0x898
	callq	_usecs_to_jiffies
	movl	%eax, 56(%rbx)
	movq	%rbx, 48(%rbx)
	movq	%rbx, %rdi
	callq	_i2c_bit_add_bus
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_DRM_ERROR
LBB0_8:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_amdgpu_hw_i2c,8,3              ## @amdgpu_hw_i2c
	.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	"AMDGPU i2c hw bus %s"

	.comm	_amdgpu_atombios_i2c_algo,4,2   ## @amdgpu_atombios_i2c_algo
L_.str.1:                               ## @.str.1
	.asciz	"AMDGPU i2c bit bus %s"

	.comm	_amdgpu_i2c_pre_xfer,4,2        ## @amdgpu_i2c_pre_xfer
	.comm	_amdgpu_i2c_post_xfer,4,2       ## @amdgpu_i2c_post_xfer
	.comm	_amdgpu_i2c_set_data,4,2        ## @amdgpu_i2c_set_data
	.comm	_amdgpu_i2c_set_clock,4,2       ## @amdgpu_i2c_set_clock
	.comm	_amdgpu_i2c_get_data,4,2        ## @amdgpu_i2c_get_data
	.comm	_amdgpu_i2c_get_clock,4,2       ## @amdgpu_i2c_get_clock
L_.str.2:                               ## @.str.2
	.asciz	"Failed to register bit i2c %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_i2c_create              ; -- Begin function amdgpu_i2c_create
	.p2align	2
_amdgpu_i2c_create:                     ; @amdgpu_i2c_create
	.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
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x23, _amdgpu_hw_i2c@GOTPAGE
Lloh1:
	ldr	x23, [x23, _amdgpu_hw_i2c@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, #0
	ccmp	x9, #0, #0, ne
	b.eq	LBB0_8
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #120
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.2:
	ldr	q0, [x21]
	stur	q0, [x19, #104]
Lloh5:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _I2C_CLASS_DDC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _I2C_CLASS_DDC@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
	ldr	x8, [x22]
	str	x8, [x19, #24]
	str	x22, [x19, #96]
	mov	x0, x19
	mov	x1, x19
	bl	_i2c_set_adapdata
	add	x0, x19, #88
	bl	_mutex_init
	ldr	x8, [x21]
	ldr	w0, [x19, #8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x23]
	cbz	x8, LBB0_5
; %bb.4:
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	mov	x3, x20
	bl	_snprintf
Lloh13:
	adrp	x8, _amdgpu_atombios_i2c_algo@GOTPAGE
Lloh14:
	ldr	x8, [x8, _amdgpu_atombios_i2c_algo@GOTPAGEOFF]
	str	x8, [x19, #16]
	mov	x0, x19
	bl	_i2c_add_adapter
	cbnz	w0, LBB0_7
	b	LBB0_9
LBB0_5:
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	mov	x3, x20
	bl	_snprintf
	mov	w8, #10
	mov	x9, x19
	str	w8, [x9, #40]!
	str	x9, [x19]
Lloh17:
	adrp	x8, _amdgpu_i2c_pre_xfer@GOTPAGE
Lloh18:
	ldr	x8, [x8, _amdgpu_i2c_pre_xfer@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _amdgpu_i2c_post_xfer@GOTPAGE
Lloh21:
	ldr	x9, [x9, _amdgpu_i2c_post_xfer@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #76]
Lloh23:
	adrp	x8, _amdgpu_i2c_set_data@GOTPAGE
Lloh24:
	ldr	x8, [x8, _amdgpu_i2c_set_data@GOTPAGEOFF]
Lloh25:
	adrp	x9, _amdgpu_i2c_set_clock@GOTPAGE
Lloh26:
	ldr	x9, [x9, _amdgpu_i2c_set_clock@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #68]
Lloh29:
	adrp	x8, _amdgpu_i2c_get_data@GOTPAGE
Lloh30:
	ldr	x8, [x8, _amdgpu_i2c_get_data@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _amdgpu_i2c_get_clock@GOTPAGE
Lloh33:
	ldr	x9, [x9, _amdgpu_i2c_get_clock@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #60]
	mov	w0, #2200
	bl	_usecs_to_jiffies
	str	w0, [x19, #56]
	str	x19, [x19, #48]
	mov	x0, x19
	bl	_i2c_bit_add_bus
	cbz	w0, LBB0_9
; %bb.6:
Lloh35:
	adrp	x0, l_.str.2@PAGE
Lloh36:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_DRM_ERROR
LBB0_7:
	mov	x0, x19
	bl	_kfree
LBB0_8:
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh27
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_amdgpu_hw_i2c,8,3              ; @amdgpu_hw_i2c
	.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	"AMDGPU i2c hw bus %s"

	.comm	_amdgpu_atombios_i2c_algo,4,2   ; @amdgpu_atombios_i2c_algo
l_.str.1:                               ; @.str.1
	.asciz	"AMDGPU i2c bit bus %s"

	.comm	_amdgpu_i2c_pre_xfer,4,2        ; @amdgpu_i2c_pre_xfer
	.comm	_amdgpu_i2c_post_xfer,4,2       ; @amdgpu_i2c_post_xfer
	.comm	_amdgpu_i2c_set_data,4,2        ; @amdgpu_i2c_set_data
	.comm	_amdgpu_i2c_set_clock,4,2       ; @amdgpu_i2c_set_clock
	.comm	_amdgpu_i2c_get_data,4,2        ; @amdgpu_i2c_get_data
	.comm	_amdgpu_i2c_get_clock,4,2       ; @amdgpu_i2c_get_clock
l_.str.2:                               ; @.str.2
	.asciz	"Failed to register bit i2c %s\n"

.subsections_via_symbols
