	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_slave_eeprom_probe
_i2c_slave_eeprom_probe:                ## @i2c_slave_eeprom_probe
	.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	%rsi, %r13
	movq	%rdi, %rbx
	movq	_I2C_SLAVE_BYTELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rsi), %esi
	callq	_FIELD_GET
	movq	%rax, %r15
	movq	_I2C_SLAVE_FLAG_ADDR16@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_FIELD_GET
	movq	%rax, %r14
	leal	64(%r15), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rbx
	movq	$0, 56(%r12)
	cmpl	$1, %r14d
	movl	$2, %eax
	sbbl	$0, %eax
	movl	%eax, (%r12)
	leal	-1(%r15), %eax
	movl	%eax, 4(%r12)
	movq	_I2C_SLAVE_FLAG_RO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_FIELD_GET
	movq	%rax, 48(%r12)
	leaq	40(%r12), %rdi
	callq	_spin_lock_init
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_sysfs_bin_attr_init
	leaq	L_.str(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	movq	_S_IWUSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 32(%rbx)
	movq	_i2c_slave_eeprom_bin_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_i2c_slave_eeprom_bin_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	%r15d, 8(%rbx)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_sysfs_create_bin_file
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	_i2c_slave_eeprom_slave_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i2c_slave_register
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_sysfs_remove_bin_file
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_SLAVE_BYTELEN,4,2          ## @I2C_SLAVE_BYTELEN
	.comm	_I2C_SLAVE_FLAG_ADDR16,4,2      ## @I2C_SLAVE_FLAG_ADDR16
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_I2C_SLAVE_FLAG_RO,4,2          ## @I2C_SLAVE_FLAG_RO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"slave-eeprom"

	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_i2c_slave_eeprom_bin_read,4,2  ## @i2c_slave_eeprom_bin_read
	.comm	_i2c_slave_eeprom_bin_write,4,2 ## @i2c_slave_eeprom_bin_write
	.comm	_i2c_slave_eeprom_slave_cb,4,2  ## @i2c_slave_eeprom_slave_cb
	.no_dead_strip	_i2c_slave_eeprom_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_slave_eeprom_probe
_i2c_slave_eeprom_probe:                ; @i2c_slave_eeprom_probe
	.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	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _I2C_SLAVE_BYTELEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_SLAVE_BYTELEN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x1]
	bl	_FIELD_GET
	mov	x20, x0
Lloh3:
	adrp	x8, _I2C_SLAVE_FLAG_ADDR16@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_SLAVE_FLAG_ADDR16@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_FIELD_GET
	mov	x23, x0
	add	w1, w20, #64
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	str	xzr, [x0, #56]
	cmp	w23, #0
	mov	w8, #1
	cinc	w8, w8, ne
	sub	w9, w20, #1
	stp	w8, w9, [x0]
Lloh9:
	adrp	x8, _I2C_SLAVE_FLAG_RO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I2C_SLAVE_FLAG_RO@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_FIELD_GET
	str	x0, [x21, #48]
	add	x0, x21, #40
	bl	_spin_lock_init
	mov	x0, x19
	mov	x1, x21
	bl	_i2c_set_clientdata
	add	x22, x21, #8
	mov	x0, x22
	bl	_sysfs_bin_attr_init
Lloh12:
	adrp	x8, l_.str@PAGE
Lloh13:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x21, #24]
Lloh14:
	adrp	x8, _S_IRUSR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _S_IRUSR@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _S_IWUSR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _S_IWUSR@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21, #32]
Lloh20:
	adrp	x8, _i2c_slave_eeprom_bin_read@GOTPAGE
Lloh21:
	ldr	x8, [x8, _i2c_slave_eeprom_bin_read@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x21, #16]
Lloh23:
	adrp	x8, _i2c_slave_eeprom_bin_write@GOTPAGE
Lloh24:
	ldr	x8, [x8, _i2c_slave_eeprom_bin_write@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	stp	w20, w8, [x21, #8]
	mov	x0, x19
	mov	x1, x22
	bl	_sysfs_create_bin_file
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.2:
Lloh26:
	adrp	x8, _i2c_slave_eeprom_slave_cb@GOTPAGE
Lloh27:
	ldr	x8, [x8, _i2c_slave_eeprom_slave_cb@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_slave_register
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, x22
	bl	_sysfs_remove_bin_file
	b	LBB0_5
LBB0_4:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_SLAVE_BYTELEN,4,2          ; @I2C_SLAVE_BYTELEN
	.comm	_I2C_SLAVE_FLAG_ADDR16,4,2      ; @I2C_SLAVE_FLAG_ADDR16
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_I2C_SLAVE_FLAG_RO,4,2          ; @I2C_SLAVE_FLAG_RO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"slave-eeprom"

	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_i2c_slave_eeprom_bin_read,4,2  ; @i2c_slave_eeprom_bin_read
	.comm	_i2c_slave_eeprom_bin_write,4,2 ; @i2c_slave_eeprom_bin_write
	.comm	_i2c_slave_eeprom_slave_cb,4,2  ; @i2c_slave_eeprom_slave_cb
	.no_dead_strip	_i2c_slave_eeprom_probe
.subsections_via_symbols
