	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl4030_probe
_twl4030_probe:                         ## @twl4030_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%rdi), %r12
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r13
	movl	20(%rdi), %edi
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_inuse@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.25:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_TWL4030_NUM_SLAVES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_13
## %bb.7:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, 8(%r14)
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	%r15, %r14
	movq	%r14, %rdi
	callq	_mutex_init
	incq	%rbx
	movq	_TWL4030_NUM_SLAVES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %r15
	cmpq	%rax, %rbx
	jae	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_twl4030_modules@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	24(%r13), %rsi
	addq	%rbx, %rsi
	movq	%rsi, 16(%r14,%r15)
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	20(%r13), %edi
	callq	_i2c_new_dummy
	movq	%rax, 8(%r14,%r15)
	testq	%rax, %rax
	je	LBB0_26
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	16(%rax), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	movl	$4, %edx
	callq	_strlcpy
	jmp	LBB0_12
LBB0_13:
	movq	_inuse@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	%r12, %rdi
	callq	_clocks_init
	xorl	%eax, %eax
	callq	_twl_has_power
	testq	%rax, %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_16
## %bb.14:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_twl4030_power_init
LBB0_16:
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.17:
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.18:
	movq	8(%r14), %rdx
	cmpq	%rsi, %rdx
	jle	LBB0_21
## %bb.19:
	callq	_twl_init_irq
	testl	%eax, %eax
	js	LBB0_20
LBB0_21:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_add_children
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jns	LBB0_24
	jmp	LBB0_23
LBB0_26:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%ebx, %ebx
	jns	LBB0_24
	jmp	LBB0_23
LBB0_20:
	movl	%eax, %ebx
LBB0_23:
	movq	%r13, %rdi
	callq	_twl4030_remove
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no platform data?\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
L_.str.1:                               ## @.str.1
	.asciz	"can't talk I2C?\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_inuse,4,2                      ## @inuse
L_.str.2:                               ## @.str.2
	.asciz	"driver is already in use\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_TWL4030_NUM_SLAVES,4,2         ## @TWL4030_NUM_SLAVES
	.comm	_twl4030_modules,8,3            ## @twl4030_modules
L_.str.3:                               ## @.str.3
	.asciz	"can't attach client %d\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_twl4030_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twl4030_probe
_twl4030_probe:                         ; @twl4030_probe
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x0
	ldr	x21, [x22, #8]!
	cbz	x21, LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #20]
Lloh0:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	x0, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _inuse@GOTPAGE
Lloh4:
	ldr	x8, [x8, _inuse@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w8, LBB0_8
; %bb.3:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh18:
	adrp	x25, _TWL4030_NUM_SLAVES@GOTPAGE
Lloh19:
	ldr	x25, [x25, _TWL4030_NUM_SLAVES@GOTPAGEOFF]
	ldr	w8, [x25]
	cbz	w8, LBB0_15
; %bb.9:
	mov	x26, #0
	mov	x23, #0
Lloh20:
	adrp	x27, _twl4030_modules@GOTPAGE
Lloh21:
	ldr	x27, [x27, _twl4030_modules@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	str	x19, [x28, #8]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x0, x28, x26
	bl	_mutex_init
	add	x23, x23, #1
	ldr	w8, [x25]
	add	x26, x26, #24
	cmp	x23, x8
	b.hs	LBB0_15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x27]
	ldr	x8, [x19, #24]
	add	x1, x23, x8
	add	x24, x28, x26
	str	x1, [x24, #16]
	cbz	x23, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x19, #20]
	bl	_i2c_new_dummy
	str	x0, [x24, #8]
	cbz	x0, LBB0_23
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x0, #16]
	ldr	w1, [x20, #4]
	mov	w2, #4
	bl	_strlcpy
	b	LBB0_11
LBB0_15:
	mov	w8, #1
Lloh22:
	adrp	x9, _inuse@GOTPAGE
Lloh23:
	ldr	x9, [x9, _inuse@GOTPAGEOFF]
Lloh24:
	str	w8, [x9]
	mov	x0, x22
	bl	_clocks_init
	bl	_twl_has_power
	cbz	x0, LBB0_18
; %bb.16:
	ldr	x0, [x21, #16]
	cbz	x0, LBB0_18
; %bb.17:
	bl	_twl4030_power_init
LBB0_18:
	ldr	x0, [x19]
	cbz	x0, LBB0_22
; %bb.19:
	ldr	x1, [x21]
	cbz	x1, LBB0_22
; %bb.20:
	ldr	x2, [x21, #8]
	cmp	x2, x1
	b.le	LBB0_22
; %bb.21:
	bl	_twl_init_irq
	tbnz	w0, #31, LBB0_24
LBB0_22:
	ldr	w1, [x20]
	mov	x0, x21
	bl	_add_children
	mov	x22, x0
	tbz	w22, #31, LBB0_7
	b	LBB0_25
LBB0_23:
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_dev_err
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w22, w8
	tbz	w22, #31, LBB0_7
	b	LBB0_25
LBB0_24:
	mov	x22, x0
LBB0_25:
	mov	x0, x19
	bl	_twl4030_remove
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no platform data?\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
l_.str.1:                               ; @.str.1
	.asciz	"can't talk I2C?\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_inuse,4,2                      ; @inuse
l_.str.2:                               ; @.str.2
	.asciz	"driver is already in use\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_TWL4030_NUM_SLAVES,4,2         ; @TWL4030_NUM_SLAVES
	.comm	_twl4030_modules,8,3            ; @twl4030_modules
l_.str.3:                               ; @.str.3
	.asciz	"can't attach client %d\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_twl4030_probe
.subsections_via_symbols
