	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eeprom_93xx46_probe_dt
_eeprom_93xx46_probe_dt:                ## @eeprom_93xx46_probe_dt
	.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	%rdi, %r12
	movq	_eeprom_93xx46_of_table@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_of_match_device
	movq	%rax, %r14
	movq	8(%r12), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$20, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	-44(%rbp), %edx
	cmpl	$8, %edx
	je	LBB0_5
## %bb.6:
	cmpl	$16, %edx
	jne	LBB0_16
## %bb.7:
	movq	_EE_ADDR16@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_5:
	movq	_EE_ADDR8@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_EE_READONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
LBB0_10:
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_gpiod_get_optional
	movl	%eax, 4(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	4(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_16:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_12:
	movq	_select_assert@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_select_deassert@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movl	4(%r15), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_gpiod_direction_output
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_14:
	movq	%r15, (%r12)
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_eeprom_93xx46_of_table,4,2     ## @eeprom_93xx46_of_table
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"data-size"

L_.str.1:                               ## @.str.1
	.asciz	"data-size property not found\n"

	.comm	_EE_ADDR8,4,2                   ## @EE_ADDR8
	.comm	_EE_ADDR16,4,2                  ## @EE_ADDR16
L_.str.2:                               ## @.str.2
	.asciz	"invalid data-size (%d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"read-only"

	.comm	_EE_READONLY,4,2                ## @EE_READONLY
L_.str.4:                               ## @.str.4
	.asciz	"select"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
	.comm	_select_assert,4,2              ## @select_assert
	.comm	_select_deassert,4,2            ## @select_deassert
	.no_dead_strip	_eeprom_93xx46_probe_dt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eeprom_93xx46_probe_dt
_eeprom_93xx46_probe_dt:                ; @eeprom_93xx46_probe_dt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
Lloh0:
	adrp	x8, _eeprom_93xx46_of_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _eeprom_93xx46_of_table@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_of_match_device
	mov	x20, x0
	ldr	x22, [x19, #8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #20
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x22
	bl	_of_property_read_u32
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	w8, [sp, #12]
	cmp	w8, #8
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #16
	b.ne	LBB0_12
; %bb.4:
Lloh8:
	adrp	x8, _EE_ADDR16@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EE_ADDR16@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_6:
	mov	x23, x0
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_14
LBB0_7:
Lloh14:
	adrp	x8, _EE_ADDR8@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EE_ADDR8@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	ldr	w9, [x21, #16]
	orr	w8, w9, w8
	str	w8, [x21, #16]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_bool
	cbz	x0, LBB0_10
; %bb.9:
Lloh18:
	adrp	x8, _EE_READONLY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EE_READONLY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x21, #16]
	orr	w8, w9, w8
	str	w8, [x21, #16]
LBB0_10:
Lloh21:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	str	w0, [x21, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.11:
	ldr	w0, [x21, #4]
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_14
LBB0_12:
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_14:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_15:
Lloh30:
	adrp	x8, _select_assert@GOTPAGE
Lloh31:
	ldr	x8, [x8, _select_assert@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _select_deassert@GOTPAGE
Lloh34:
	ldr	x9, [x9, _select_deassert@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #8]
	ldr	w0, [x21, #4]
	mov	w1, #0
	bl	_gpiod_direction_output
	ldr	x8, [x20]
	cbz	x8, LBB0_17
; %bb.16:
	ldr	w8, [x8]
	str	w8, [x21]
LBB0_17:
	mov	w23, #0
	str	x21, [x19]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_eeprom_93xx46_of_table,4,2     ; @eeprom_93xx46_of_table
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"data-size"

l_.str.1:                               ; @.str.1
	.asciz	"data-size property not found\n"

	.comm	_EE_ADDR8,4,2                   ; @EE_ADDR8
	.comm	_EE_ADDR16,4,2                  ; @EE_ADDR16
l_.str.2:                               ; @.str.2
	.asciz	"invalid data-size (%d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"read-only"

	.comm	_EE_READONLY,4,2                ; @EE_READONLY
l_.str.4:                               ; @.str.4
	.asciz	"select"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
	.comm	_select_assert,4,2              ; @select_assert
	.comm	_select_deassert,4,2            ; @select_deassert
	.no_dead_strip	_eeprom_93xx46_probe_dt
.subsections_via_symbols
