	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt5033_i2c_probe
_rt5033_i2c_probe:                      ## @rt5033_i2c_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	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, 8(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 20(%rbx)
	movl	$1, (%rbx)
	movq	_rt5033_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 24(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.11:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	24(%rbx), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_10
LBB0_3:
	movl	24(%rbx), %edi
	movq	_RT5033_REG_DEVICE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_10
LBB0_5:
	movl	-44(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movl	20(%rbx), %esi
	movl	24(%rbx), %edi
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %r9
	addq	$16, %r9
	movq	_rt5033_irq_chip@GOTPCREL(%rip), %r8
	xorl	%ecx, %ecx
	callq	_regmap_add_irq_chip
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	movl	20(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_7:
	movq	8(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_rt5033_devs@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r13d, %edi
	callq	_ARRAY_SIZE
	movl	%eax, %r12d
	movl	16(%rbx), %edi
	callq	_regmap_irq_get_domain
	movl	%eax, (%rsp)
	xorl	%r15d, %r15d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$-1, %esi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_devm_mfd_add_devices
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	8(%rbx), %rdi
	movl	(%rbx), %esi
	callq	_device_init_wakeup
	jmp	LBB0_10
LBB0_8:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r12d, %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_rt5033_regmap_config,4,2       ## @rt5033_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate register map.\n"

	.comm	_RT5033_REG_DEVICE_ID,4,2       ## @RT5033_REG_DEVICE_ID
L_.str.1:                               ## @.str.1
	.asciz	"Device not found\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"Device found Device ID: %04x\n"

	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_rt5033_irq_chip,4,2            ## @rt5033_irq_chip
L_.str.3:                               ## @.str.3
	.asciz	"Failed to request IRQ %d: %d\n"

	.comm	_rt5033_devs,4,2                ## @rt5033_devs
L_.str.4:                               ## @.str.4
	.asciz	"Failed to add RT5033 child devices.\n"

	.no_dead_strip	_rt5033_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt5033_i2c_probe
_rt5033_i2c_probe:                      ; @rt5033_i2c_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	str	x19, [x20, #8]
	ldr	w8, [x19, #4]
	str	w8, [x20, #20]
	mov	w8, #1
	str	w8, [x20]
Lloh3:
	adrp	x1, _rt5033_regmap_config@GOTPAGE
Lloh4:
	ldr	x1, [x1, _rt5033_regmap_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	str	w0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #24]
	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
	add	sp, sp, #96
	b	_PTR_ERR
LBB0_3:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	ldr	w0, [x20, #24]
Lloh9:
	adrp	x8, _RT5033_REG_DEVICE_ID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RT5033_REG_DEVICE_ID@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #28
	bl	_regmap_read
	cbz	w0, LBB0_8
; %bb.5:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
LBB0_8:
	ldr	w2, [sp, #28]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldp	w1, w0, [x20, #20]
Lloh18:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w2, w9, w8
	add	x5, x20, #16
Lloh24:
	adrp	x4, _rt5033_irq_chip@GOTPAGE
Lloh25:
	ldr	x4, [x4, _rt5033_irq_chip@GOTPAGEOFF]
	mov	w3, #0
	bl	_regmap_add_irq_chip
	cbz	w0, LBB0_11
; %bb.9:
	mov	x21, x0
	ldr	w8, [x20, #20]
	stp	x8, x21, [sp]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
LBB0_11:
	ldr	x21, [x20, #8]
Lloh28:
	adrp	x8, _rt5033_devs@GOTPAGE
Lloh29:
	ldr	x8, [x8, _rt5033_devs@GOTPAGEOFF]
Lloh30:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x23, x0
	ldr	w0, [x20, #16]
	bl	_regmap_irq_get_domain
	mov	x6, x0
	mov	x0, x21
	mov	w1, #-1
	mov	x2, x22
	mov	x3, x23
	mov	x4, #0
	mov	w5, #0
	bl	_devm_mfd_add_devices
	tbnz	w0, #31, LBB0_13
; %bb.12:
	ldr	x0, [x20, #8]
	ldr	w1, [x20]
	bl	_device_init_wakeup
	mov	w21, #0
	b	LBB0_7
LBB0_13:
	mov	x21, x0
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_rt5033_regmap_config,4,2       ; @rt5033_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate register map.\n"

	.comm	_RT5033_REG_DEVICE_ID,4,2       ; @RT5033_REG_DEVICE_ID
l_.str.1:                               ; @.str.1
	.asciz	"Device not found\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"Device found Device ID: %04x\n"

	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_rt5033_irq_chip,4,2            ; @rt5033_irq_chip
l_.str.3:                               ; @.str.3
	.asciz	"Failed to request IRQ %d: %d\n"

	.comm	_rt5033_devs,4,2                ; @rt5033_devs
l_.str.4:                               ; @.str.4
	.asciz	"Failed to add RT5033 child devices.\n"

	.no_dead_strip	_rt5033_i2c_probe
.subsections_via_symbols
