	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_i2c_encoder_init           ## -- Begin function drm_i2c_encoder_init
	.p2align	4, 0x90
_drm_i2c_encoder_init:                  ## @drm_i2c_encoder_init
	.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	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_I2C_MODULE_PREFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rcx), %edx
	leaq	L_.str(%rip), %rdi
	callq	_request_module
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_i2c_new_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r12, %rbx
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_5
## %bb.8:
	movq	%r13, 16(%r14)
	movq	(%r13), %rdi
	callq	_to_i2c_driver
	movl	%eax, %edi
	callq	_to_drm_i2c_encoder_driver
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.9:
	movq	(%r15), %rsi
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:
	movq	8(%r14), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	%r13, %rdi
	callq	_i2c_unregister_device
	movq	%r12, %rdi
	callq	_module_put
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s"

	.comm	_I2C_MODULE_PREFIX,4,2          ## @I2C_MODULE_PREFIX
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_i2c_encoder_init           ; -- Begin function drm_i2c_encoder_init
	.p2align	2
_drm_i2c_encoder_init:                  ; @drm_i2c_encoder_init
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _I2C_MODULE_PREFIX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_MODULE_PREFIX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x3, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_request_module
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_new_device
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.2:
	ldr	x22, [x8]
	mov	x0, x22
	bl	_try_module_get
	cbz	w0, LBB0_9
; %bb.3:
	str	x20, [x19, #16]
	ldr	x0, [x20]
	bl	_to_i2c_driver
	bl	_to_drm_i2c_encoder_driver
	ldr	x8, [x0]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	blr	x8
	mov	x23, x0
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	x1, [x21]
	cbz	x1, LBB0_6
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
LBB0_6:
	mov	w23, #0
	b	LBB0_11
LBB0_7:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_11
LBB0_8:
	mov	x22, #0
LBB0_9:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_10:
	mov	x0, x20
	bl	_i2c_unregister_device
	mov	x0, x22
	bl	_module_put
LBB0_11:
	mov	x0, x23
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s"

	.comm	_I2C_MODULE_PREFIX,4,2          ; @I2C_MODULE_PREFIX
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
