	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at24_probe
_at24_probe:                            ## @at24_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rax), %r14d
	movl	4(%rax), %r12d
	movl	8(%rax), %ebx
	movl	12(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	16(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rax), %r15
	jmp	LBB0_6
LBB0_2:
	movl	(%rsi), %ebx
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.5:
	movq	_AT24_SIZE_BYTELEN@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_AT24_BITMASK
	andl	%ebx, %eax
	movl	%eax, %edi
	callq	_BIT
	movb	(%r14), %cl
	sarl	%cl, %ebx
	movl	%eax, %r14d
	movq	_AT24_SIZE_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AT24_BITMASK
	movl	%eax, %r12d
	andl	%ebx, %r12d
	movl	$1, %ebx
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
	xorl	%r15d, %r15d
LBB0_6:
	movl	%r14d, %edi
	callq	_is_power_of_2
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_warn
LBB0_8:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_is_power_of_2
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_warn
LBB0_10:
	movl	32(%r13), %edi
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	xorl	%ecx, %ecx
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_11
LBB0_14:
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	_AT24_FLAG_TAKE8ADDR@GOTPCREL(%rip), %rcx
	movl	$8, %eax
	testl	%r12d, (%rcx)
	jne	LBB0_16
## %bb.15:
	movq	_AT24_FLAG_ADDR16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	movl	$256, %eax                      ## imm = 0x100
	movl	$65536, %esi                    ## imm = 0x10000
	cmovel	%eax, %esi
	movl	%r14d, %edi
	callq	_DIV_ROUND_UP
                                        ## kill: def $eax killed $eax def $rax
LBB0_16:
	movl	%r14d, %ebx
	movl	%r12d, %r14d
	leal	112(,%rax,8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %r12
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	%rax, %r15
	leaq	104(%rax), %rdi
	callq	_mutex_init
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r15)
	movl	%ebx, 72(%r15)
	movl	%r14d, %ecx
	movl	%r14d, 76(%r15)
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, 80(%r15)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 84(%r15)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 88(%r15)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 96(%r15)
	movl	%r12d, 4(%r15)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, 48(%r15)
	movq	_AT24_FLAG_IRUGO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	movq	%r12, %rdx
	jne	LBB0_19
## %bb.20:
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_11:
	movq	_AT24_FLAG_ADDR16@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_13
LBB0_12:
	movq	_EPFNOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_19:
	movq	_S_IRUGO@GOTPCREL(%rip), %rax
LBB0_21:
	movl	%r14d, %r12d
	movl	(%rax), %eax
	movl	%eax, 56(%r15)
	movq	_at24_bin_read@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 68(%r15)
	movl	%ebx, 40(%r15)
	movq	_at24_macc_read@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%r15)
	movq	_AT24_FLAG_READONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	testl	%r14d, %ebx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_28
## %bb.22:
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	jne	LBB0_25
## %bb.23:
	movl	32(%r13), %edi
	movq	_I2C_FUNC_SMBUS_WRITE_I2C_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testq	%rax, %rax
	je	LBB0_27
## %bb.24:
	movl	56(%r15), %eax
	movl	-48(%rbp), %esi                 ## 4-byte Reload
LBB0_25:
	movq	_at24_macc_write@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%r15)
	movq	_at24_bin_write@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 64(%r15)
	movq	_S_IWUSR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 56(%r15)
	movq	_io_limit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %esi
	cmovbl	%esi, %eax
	movq	_I2C_SMBUS_BLOCK_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	cmpl	%edi, %eax
	cmovbl	%eax, %edi
	testq	%r14, %r14
	cmovnel	%eax, %edi
	movl	%edi, 8(%r15)
	addl	$2, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_28
## %bb.26:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_38
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_39
LBB0_13:
	movl	32(%r13), %edi
	movq	_I2C_FUNC_SMBUS_READ_I2C_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	movl	$1, %ecx
	testq	%rax, %rax
	jne	LBB0_14
	jmp	LBB0_12
LBB0_27:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_warn
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_28:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	24(%r15), %rax
	movq	%r13, (%rax)
	cmpl	$2, %edx
	jb	LBB0_41
## %bb.29:
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movl	32(%r13), %edi
	movq	24(%r13), %rsi
	addq	%rbx, %rsi
	callq	_i2c_new_dummy
	movq	24(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	24(%r15), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_31
## %bb.40:                              ##   in Loop: Header=BB0_30 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_30
LBB0_41:
	leaq	40(%r15), %rsi
	movq	%r13, %rdi
	callq	_sysfs_create_bin_file
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_32
## %bb.42:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	testl	%r12d, -44(%rbp)                ## 4-byte Folded Reload
	movl	40(%r15), %edx
	movl	16(%r13), %ecx
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.7(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_info
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	movl	8(%r15), %r8d
	leaq	L_.str.9(%rip), %rax
	leaq	L_.str.10(%rip), %r9
	cmoveq	%rax, %r9
	leaq	L_.str.8(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_44
## %bb.43:
	addq	$32, %r15
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	*%rcx
	jmp	LBB0_44
LBB0_31:
	addq	24(%r13), %rbx
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_dev_err
	movq	_EADDRINUSE@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_32:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$2, %eax
	jb	LBB0_37
## %bb.33:
	movl	%eax, %r12d
	movl	$1, %ebx
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_34 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_37
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=1
	callq	_i2c_unregister_device
	jmp	LBB0_36
LBB0_37:
	movq	16(%r15), %rdi
	callq	_kfree
LBB0_38:
	movq	%r15, %rdi
	callq	_kfree
LBB0_39:
	leaq	L_.str.11(%rip), %rsi
	movq	%r13, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_44:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_AT24_SIZE_BYTELEN,4,2          ## @AT24_SIZE_BYTELEN
	.comm	_AT24_SIZE_FLAGS,4,2            ## @AT24_SIZE_FLAGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"byte_len looks suspicious (no power of 2)!\n"

L_.str.1:                               ## @.str.1
	.asciz	"page_size looks suspicious (no power of 2)!\n"

	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
	.comm	_AT24_FLAG_ADDR16,4,2           ## @AT24_FLAG_ADDR16
	.comm	_EPFNOSUPPORT,4,2               ## @EPFNOSUPPORT
	.comm	_I2C_FUNC_SMBUS_READ_I2C_BLOCK,4,2 ## @I2C_FUNC_SMBUS_READ_I2C_BLOCK
	.comm	_AT24_FLAG_TAKE8ADDR,4,2        ## @AT24_FLAG_TAKE8ADDR
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"eeprom"

	.comm	_AT24_FLAG_IRUGO,4,2            ## @AT24_FLAG_IRUGO
	.comm	_S_IRUGO,4,2                    ## @S_IRUGO
	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_at24_bin_read,4,2              ## @at24_bin_read
	.comm	_at24_macc_read,4,2             ## @at24_macc_read
	.comm	_AT24_FLAG_READONLY,4,2         ## @AT24_FLAG_READONLY
	.comm	_I2C_FUNC_SMBUS_WRITE_I2C_BLOCK,4,2 ## @I2C_FUNC_SMBUS_WRITE_I2C_BLOCK
	.comm	_at24_macc_write,4,2            ## @at24_macc_write
	.comm	_at24_bin_write,4,2             ## @at24_bin_write
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_io_limit,4,2                   ## @io_limit
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ## @I2C_SMBUS_BLOCK_MAX
L_.str.3:                               ## @.str.3
	.asciz	"cannot write due to controller restrictions."

L_.str.4:                               ## @.str.4
	.asciz	"address 0x%02x unavailable\n"

	.comm	_EADDRINUSE,4,2                 ## @EADDRINUSE
L_.str.5:                               ## @.str.5
	.asciz	"%zu byte %s EEPROM %s\n"

L_.str.6:                               ## @.str.6
	.asciz	"(writable)"

L_.str.7:                               ## @.str.7
	.asciz	"(read-only)"

L_.str.8:                               ## @.str.8
	.asciz	"page_size %d, num_addresses %d, write_max %d%s\n"

L_.str.9:                               ## @.str.9
	.asciz	", use_smbus"

L_.str.10:                              ## @.str.10
	.space	1

L_.str.11:                              ## @.str.11
	.asciz	"probe error %d\n"

	.no_dead_strip	_at24_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at24_probe
_at24_probe:                            ; @at24_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	w25, w28, [x8]
	ldp	w21, w26, [x8, #8]
	ldp	x9, x22, [x8, #16]
	str	x9, [sp, #40]                   ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:
	ldr	w20, [x1]
	cbz	w20, LBB0_23
; %bb.3:
Lloh0:
	adrp	x21, _AT24_SIZE_BYTELEN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AT24_SIZE_BYTELEN@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_AT24_BITMASK
	and	w0, w0, w20
	bl	_BIT
	mov	x25, x0
	ldr	w8, [x21]
	asr	w20, w20, w8
Lloh2:
	adrp	x8, _AT24_SIZE_FLAGS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AT24_SIZE_FLAGS@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_AT24_BITMASK
	str	xzr, [sp, #40]                  ; 8-byte Folded Spill
	mov	x22, #0
	and	w28, w0, w20
	mov	w21, #1
                                        ; implicit-def: $w26
LBB0_4:
	mov	x0, x25
	bl	_is_power_of_2
	cbnz	w0, LBB0_6
; %bb.5:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_6:
	mov	x0, x21
	bl	_is_power_of_2
	cbnz	w0, LBB0_8
; %bb.7:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_8:
	ldr	w0, [x19, #32]
Lloh9:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	mov	x23, x0
	cbz	x0, LBB0_12
; %bb.9:
	mov	w27, #0
LBB0_10:
	str	x22, [sp, #32]                  ; 8-byte Folded Spill
Lloh12:
	adrp	x8, _AT24_FLAG_TAKE8ADDR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AT24_FLAG_TAKE8ADDR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w28
	b.eq	LBB0_14
; %bb.11:
	mov	w24, #8
	b	LBB0_15
LBB0_12:
Lloh15:
	adrp	x8, _AT24_FLAG_ADDR16@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AT24_FLAG_ADDR16@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w28
	b.eq	LBB0_25
LBB0_13:
Lloh18:
	adrp	x8, _EPFNOSUPPORT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EPFNOSUPPORT@GOTPAGEOFF]
	b	LBB0_24
LBB0_14:
Lloh20:
	adrp	x8, _AT24_FLAG_ADDR16@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AT24_FLAG_ADDR16@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w28
	mov	w8, #65536
	mov	w9, #256
	csel	w1, w9, w8, eq
	mov	x0, x25
	bl	_DIV_ROUND_UP
	mov	x24, x0
LBB0_15:
	lsl	w8, w24, #3
	add	w0, w8, #112
Lloh23:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh24:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_kzalloc
	cbz	x0, LBB0_22
; %bb.16:
	mov	x22, x0
	add	x0, x0, #104
	bl	_mutex_init
	stp	w25, w28, [x22, #72]
	stp	w21, w26, [x22, #80]
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	stp	x9, x8, [x22, #88]
	stp	w27, w24, [x22]
	mov	x26, x22
	str	w25, [x26, #40]!
Lloh25:
	adrp	x8, l_.str.2@PAGE
Lloh26:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x22, #48]
Lloh27:
	adrp	x8, _AT24_FLAG_IRUGO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AT24_FLAG_IRUGO@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _S_IRUGO@GOTPAGE
Lloh31:
	ldr	x9, [x9, _S_IRUGO@GOTPAGEOFF]
Lloh32:
	adrp	x10, _S_IRUSR@GOTPAGE
Lloh33:
	ldr	x10, [x10, _S_IRUSR@GOTPAGEOFF]
	tst	w8, w28
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	str	w8, [x22, #56]
Lloh34:
	adrp	x9, _at24_bin_read@GOTPAGE
Lloh35:
	ldr	x9, [x9, _at24_bin_read@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	str	w9, [x22, #68]
Lloh37:
	adrp	x9, _at24_macc_read@GOTPAGE
Lloh38:
	ldr	x9, [x9, _at24_macc_read@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	str	w9, [x22, #36]
Lloh40:
	adrp	x9, _AT24_FLAG_READONLY@GOTPAGE
Lloh41:
	ldr	x9, [x9, _AT24_FLAG_READONLY@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	ands	w28, w9, w28
	b.ne	LBB0_28
; %bb.17:
	cbnz	x23, LBB0_20
; %bb.18:
	ldr	w0, [x19, #32]
Lloh43:
	adrp	x8, _I2C_FUNC_SMBUS_WRITE_I2C_BLOCK@GOTPAGE
Lloh44:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_WRITE_I2C_BLOCK@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	x0, LBB0_27
; %bb.19:
	ldr	w8, [x22, #56]
LBB0_20:
Lloh46:
	adrp	x9, _at24_macc_write@GOTPAGE
Lloh47:
	ldr	x9, [x9, _at24_macc_write@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	str	w9, [x22, #32]
Lloh49:
	adrp	x9, _at24_bin_write@GOTPAGE
Lloh50:
	ldr	x9, [x9, _at24_bin_write@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	str	w9, [x22, #64]
Lloh52:
	adrp	x9, _S_IWUSR@GOTPAGE
Lloh53:
	ldr	x9, [x9, _S_IWUSR@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x22, #56]
Lloh55:
	adrp	x8, _io_limit@GOTPAGE
Lloh56:
	ldr	x8, [x8, _io_limit@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	cmp	w21, w8
	csel	w8, w21, w8, lo
Lloh58:
	adrp	x9, _I2C_SMBUS_BLOCK_MAX@GOTPAGE
Lloh59:
	ldr	x9, [x9, _I2C_SMBUS_BLOCK_MAX@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w9, w8, w9, lo
	cmp	x23, #0
	csel	w8, w9, w8, eq
	str	w8, [x22, #8]
	add	w0, w8, #2
	ldr	w1, [x20]
	bl	_kmalloc
	str	x0, [x22, #16]
	cbnz	x0, LBB0_28
; %bb.21:
Lloh61:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh62:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_43
LBB0_22:
Lloh64:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh65:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_24
LBB0_23:
Lloh66:
	adrp	x8, _ENODEV@GOTPAGE
Lloh67:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_24:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_44
LBB0_25:
	ldr	w0, [x19, #32]
Lloh68:
	adrp	x8, _I2C_FUNC_SMBUS_READ_I2C_BLOCK@GOTPAGE
Lloh69:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_READ_I2C_BLOCK@GOTPAGEOFF]
Lloh70:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	x0, LBB0_13
; %bb.26:
	mov	w27, #1
	b	LBB0_10
LBB0_27:
Lloh71:
	adrp	x1, l_.str.3@PAGE
Lloh72:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_28:
	ldr	x8, [x22, #24]
	str	x19, [x8]
	cmp	w24, #2
	b.lo	LBB0_32
; %bb.29:
	mov	w25, w24
	mov	w20, #1
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #32]
	ldr	x8, [x19, #24]
	add	x1, x20, x8
	bl	_i2c_new_dummy
	ldr	x8, [x22, #24]
	lsl	x9, x20, #3
	str	x0, [x8, x9]
	ldr	x8, [x22, #24]
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_37
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	add	x20, x20, #1
	cmp	x25, x20
	b.ne	LBB0_30
LBB0_32:
	mov	x0, x19
	mov	x1, x26
	bl	_sysfs_create_bin_file
	mov	x25, x0
	cbz	w0, LBB0_34
; %bb.33:
	cmp	w24, #2
	b.hs	LBB0_38
	b	LBB0_42
LBB0_34:
	mov	x0, x19
	mov	x1, x22
	bl	_i2c_set_clientdata
	ldr	w2, [x22, #40]
	ldr	w3, [x19, #16]
Lloh73:
	adrp	x8, l_.str.7@PAGE
Lloh74:
	add	x8, x8, l_.str.7@PAGEOFF
Lloh75:
	adrp	x9, l_.str.6@PAGE
Lloh76:
	add	x9, x9, l_.str.6@PAGEOFF
	cmp	w28, #0
	csel	x4, x9, x8, eq
Lloh77:
	adrp	x1, l_.str.5@PAGE
Lloh78:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
Lloh79:
	adrp	x8, l_.str.10@PAGE
Lloh80:
	add	x8, x8, l_.str.10@PAGEOFF
Lloh81:
	adrp	x9, l_.str.9@PAGE
Lloh82:
	add	x9, x9, l_.str.9@PAGEOFF
	cmp	x23, #0
	csel	x8, x9, x8, eq
	ldr	w9, [x22, #8]
	stp	x9, x8, [sp, #8]
	str	x24, [sp]
Lloh83:
	adrp	x1, l_.str.8@PAGE
Lloh84:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_dbg
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_36
; %bb.35:
	add	x0, x22, #32
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	blr	x8
LBB0_36:
	mov	w25, #0
	b	LBB0_45
LBB0_37:
	ldr	x8, [x19, #24]
	add	x2, x8, x20
Lloh85:
	adrp	x1, l_.str.4@PAGE
Lloh86:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh87:
	adrp	x8, _EADDRINUSE@GOTPAGE
Lloh88:
	ldr	x8, [x8, _EADDRINUSE@GOTPAGEOFF]
Lloh89:
	ldr	w8, [x8]
	neg	w25, w8
	cmp	w24, #2
	b.lo	LBB0_42
LBB0_38:
	mov	w8, w24
	lsl	x20, x8, #3
	mov	w21, #8
	b	LBB0_40
LBB0_39:                                ;   in Loop: Header=BB0_40 Depth=1
	add	x21, x21, #8
	cmp	x20, x21
	b.eq	LBB0_42
LBB0_40:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #24]
	ldr	x0, [x8, x21]
	cbz	x0, LBB0_39
; %bb.41:                               ;   in Loop: Header=BB0_40 Depth=1
	bl	_i2c_unregister_device
	b	LBB0_39
LBB0_42:
	ldr	x0, [x22, #16]
	bl	_kfree
LBB0_43:
	mov	x0, x22
	bl	_kfree
LBB0_44:
Lloh90:
	adrp	x1, l_.str.11@PAGE
Lloh91:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	mov	x2, x25
	bl	_dev_dbg
LBB0_45:
	mov	x0, x25
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpAdd	Lloh90, Lloh91
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_AT24_SIZE_BYTELEN,4,2          ; @AT24_SIZE_BYTELEN
	.comm	_AT24_SIZE_FLAGS,4,2            ; @AT24_SIZE_FLAGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"byte_len looks suspicious (no power of 2)!\n"

l_.str.1:                               ; @.str.1
	.asciz	"page_size looks suspicious (no power of 2)!\n"

	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
	.comm	_AT24_FLAG_ADDR16,4,2           ; @AT24_FLAG_ADDR16
	.comm	_EPFNOSUPPORT,4,2               ; @EPFNOSUPPORT
	.comm	_I2C_FUNC_SMBUS_READ_I2C_BLOCK,4,2 ; @I2C_FUNC_SMBUS_READ_I2C_BLOCK
	.comm	_AT24_FLAG_TAKE8ADDR,4,2        ; @AT24_FLAG_TAKE8ADDR
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"eeprom"

	.comm	_AT24_FLAG_IRUGO,4,2            ; @AT24_FLAG_IRUGO
	.comm	_S_IRUGO,4,2                    ; @S_IRUGO
	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_at24_bin_read,4,2              ; @at24_bin_read
	.comm	_at24_macc_read,4,2             ; @at24_macc_read
	.comm	_AT24_FLAG_READONLY,4,2         ; @AT24_FLAG_READONLY
	.comm	_I2C_FUNC_SMBUS_WRITE_I2C_BLOCK,4,2 ; @I2C_FUNC_SMBUS_WRITE_I2C_BLOCK
	.comm	_at24_macc_write,4,2            ; @at24_macc_write
	.comm	_at24_bin_write,4,2             ; @at24_bin_write
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_io_limit,4,2                   ; @io_limit
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ; @I2C_SMBUS_BLOCK_MAX
l_.str.3:                               ; @.str.3
	.asciz	"cannot write due to controller restrictions."

l_.str.4:                               ; @.str.4
	.asciz	"address 0x%02x unavailable\n"

	.comm	_EADDRINUSE,4,2                 ; @EADDRINUSE
l_.str.5:                               ; @.str.5
	.asciz	"%zu byte %s EEPROM %s\n"

l_.str.6:                               ; @.str.6
	.asciz	"(writable)"

l_.str.7:                               ; @.str.7
	.asciz	"(read-only)"

l_.str.8:                               ; @.str.8
	.asciz	"page_size %d, num_addresses %d, write_max %d%s\n"

l_.str.9:                               ; @.str.9
	.asciz	", use_smbus"

l_.str.10:                              ; @.str.10
	.space	1

l_.str.11:                              ; @.str.11
	.asciz	"probe error %d\n"

	.no_dead_strip	_at24_probe
.subsections_via_symbols
