	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_reg_slave
_rcar_reg_slave:                        ## @rcar_reg_slave
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_i2c_get_adapdata
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%rax, %r14
	movq	_I2C_CLIENT_TEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	callq	_rcar_i2c_priv_to_dev
	movl	%eax, %edi
	callq	_pm_runtime_get_sync
	movq	%rbx, (%r14)
	movq	_ICSAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	callq	_rcar_i2c_write
	movq	_ICSSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rcar_i2c_write
	movq	_ICSIER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SAR@GOTPCREL(%rip), %rax
	movq	_SSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_rcar_i2c_write
	movq	_ICSCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SIE@GOTPCREL(%rip), %rax
	movq	_SDBS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_rcar_i2c_write
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_I2C_CLIENT_TEN,4,2             ## @I2C_CLIENT_TEN
	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
	.comm	_ICSAR,4,2                      ## @ICSAR
	.comm	_ICSSR,4,2                      ## @ICSSR
	.comm	_ICSIER,4,2                     ## @ICSIER
	.comm	_SAR,4,2                        ## @SAR
	.comm	_SSR,4,2                        ## @SSR
	.comm	_ICSCR,4,2                      ## @ICSCR
	.comm	_SIE,4,2                        ## @SIE
	.comm	_SDBS,4,2                       ## @SDBS
	.no_dead_strip	_rcar_reg_slave
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_reg_slave
_rcar_reg_slave:                        ; @rcar_reg_slave
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_i2c_get_adapdata
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _I2C_CLIENT_TEN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _I2C_CLIENT_TEN@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _EAFNOSUPPORT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAFNOSUPPORT@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x19, x0
	bl	_rcar_i2c_priv_to_dev
	bl	_pm_runtime_get_sync
	str	x20, [x19]
Lloh7:
	adrp	x8, _ICSAR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ICSAR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	mov	x0, x19
	bl	_rcar_i2c_write
Lloh10:
	adrp	x8, _ICSSR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ICSSR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_rcar_i2c_write
Lloh13:
	adrp	x8, _ICSIER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ICSIER@GOTPAGEOFF]
Lloh15:
	adrp	x9, _SAR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SAR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	ldr	w8, [x9]
Lloh19:
	adrp	x9, _SSR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SSR@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_rcar_i2c_write
Lloh22:
	adrp	x8, _ICSCR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ICSCR@GOTPAGEOFF]
Lloh24:
	adrp	x9, _SIE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SIE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	ldr	w8, [x9]
Lloh28:
	adrp	x9, _SDBS@GOTPAGE
Lloh29:
	ldr	x9, [x9, _SDBS@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_rcar_i2c_write
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_I2C_CLIENT_TEN,4,2             ; @I2C_CLIENT_TEN
	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
	.comm	_ICSAR,4,2                      ; @ICSAR
	.comm	_ICSSR,4,2                      ; @ICSSR
	.comm	_ICSIER,4,2                     ; @ICSIER
	.comm	_SAR,4,2                        ; @SAR
	.comm	_SSR,4,2                        ; @SSR
	.comm	_ICSCR,4,2                      ; @ICSCR
	.comm	_SIE,4,2                        ; @SIE
	.comm	_SDBS,4,2                       ; @SDBS
	.no_dead_strip	_rcar_reg_slave
.subsections_via_symbols
