	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max732x_probe
_max732x_probe:                         ## @max732x_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, %r12
	movq	%rdi, %rbx
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_dev_get_platdata
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_of_gpio_max732x
	movq	%rax, %r14
LBB0_3:
	testq	%r14, %r14
	je	LBB0_4
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rax, %r13
	movq	%rbx, 56(%rax)
	movl	12(%r14), %edx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_max732x_setup_gpio
	movq	%r15, 8(%r13)
	movl	(%rbx), %ecx
	movl	%ecx, %edx
	andl	$15, %edx
	movl	%ecx, %esi
	andl	$112, %esi
	cmpl	$80, %esi
	je	LBB0_23
## %bb.9:
	cmpl	$96, %esi
	jne	LBB0_31
## %bb.10:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, 40(%r13)
	cmpl	$9, %eax
	jl	LBB0_11
## %bb.21:
	orl	$80, %edx
	movl	16(%rbx), %esi
	movq	%r15, %rdi
	callq	_devm_i2c_new_dummy_device
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_30
## %bb.22:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, 32(%r13)
	movq	%r12, 48(%r13)
	jmp	LBB0_26
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_28
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_28
LBB0_23:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, 48(%r13)
	cmpl	$9, %eax
	jl	LBB0_11
## %bb.24:
	orl	$96, %edx
	movl	16(%rbx), %esi
	movq	%r15, %rdi
	callq	_devm_i2c_new_dummy_device
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_25
LBB0_30:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_31:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movl	%ecx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_28:
	subl	(%rax), %r12d
LBB0_29:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
LBB0_12:
	movq	%r13, %rdi
	addq	$24, %rdi
	callq	_mutex_init
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_is_group_a
	movq	16(%r13), %rdx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_max732x_readb
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_29
## %bb.13:
	testb	%bl, %bl
	je	LBB0_15
## %bb.14:
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_is_group_a
	movq	16(%r13), %rdx
	addq	$4, %rdx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_max732x_readb
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_29
LBB0_15:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r13, %rdx
	callq	_devm_gpiochip_add_data
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_29
## %bb.16:
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_max732x_irq_setup
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_29
## %bb.17:
	movq	(%r14), %rax
	testq	%rax, %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_20
## %bb.18:
	movl	(%r13), %edx
	movl	4(%r13), %esi
	movl	8(%r14), %ecx
	movq	%rbx, %rdi
	callq	*%rax
	testl	%eax, %eax
	jns	LBB0_20
## %bb.19:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_warn
LBB0_20:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_i2c_set_clientdata
	xorl	%r12d, %r12d
	jmp	LBB0_29
LBB0_25:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, 32(%r13)
	movq	%r12, 40(%r13)
LBB0_26:
	movb	$1, %bl
	testq	%r12, %r12
	jne	LBB0_12
## %bb.27:
	leaq	L_.str.3(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no platform data\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate I2C device\n"

L_.str.2:                               ## @.str.2
	.asciz	"invalid I2C address specified %02x\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to allocate second group I2C device\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.4:                               ## @.str.4
	.asciz	"setup failed, %d\n"

	.no_dead_strip	_max732x_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max732x_probe
_max732x_probe:                         ; @max732x_probe
	.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	x22, x1
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_dev_get_platdata
	mov	x21, x0
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_of_gpio_max732x
	mov	x21, x0
LBB0_3:
	cbz	x21, LBB0_10
; %bb.4:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_11
; %bb.5:
	mov	x23, x0
	str	x20, [x0, #56]
	ldr	w2, [x21, #12]
	mov	x1, x22
	bl	_max732x_setup_gpio
	str	x19, [x23, #8]
	ldr	w8, [x20]
	and	w9, w8, #0x70
	cmp	w9, #80
	b.eq	LBB0_12
; %bb.6:
	cmp	w9, #96
	b.ne	LBB0_15
; %bb.7:
	str	x20, [x23, #40]
	cmp	w0, #9
	b.lt	LBB0_19
; %bb.8:
	mov	w2, #80
	bfxil	w2, w8, #0, #4
	ldr	w1, [x20, #16]
	mov	x0, x19
	bl	_devm_i2c_new_dummy_device
	mov	x24, x0
	bl	_IS_ERR
	cbnz	w0, LBB0_14
; %bb.9:
	str	x24, [x23, #32]
	str	x24, [x23, #48]
	b	LBB0_30
LBB0_10:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	b	LBB0_16
LBB0_11:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_17
LBB0_12:
	str	x20, [x23, #48]
	cmp	w0, #9
	b.lt	LBB0_19
; %bb.13:
	mov	w2, #96
	bfxil	w2, w8, #0, #4
	ldr	w1, [x20, #16]
	mov	x0, x19
	bl	_devm_i2c_new_dummy_device
	mov	x24, x0
	bl	_IS_ERR
	cbz	w0, LBB0_29
LBB0_14:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x24
	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
	b	_PTR_ERR
LBB0_15:
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_16:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	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_19:
	mov	w24, #0
LBB0_20:
	add	x0, x23, #24
	bl	_mutex_init
	mov	x0, x23
	mov	w1, #0
	bl	_is_group_a
	mov	x1, x0
	ldr	x2, [x23, #16]
	mov	x0, x23
	bl	_max732x_readb
	cbnz	w0, LBB0_18
; %bb.21:
	cbz	w24, LBB0_23
; %bb.22:
	mov	x0, x23
	mov	w1, #8
	bl	_is_group_a
	mov	x1, x0
	ldr	x8, [x23, #16]
	add	x2, x8, #4
	mov	x0, x23
	bl	_max732x_readb
	cbnz	w0, LBB0_18
LBB0_23:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x23
	bl	_devm_gpiochip_add_data
	cbnz	w0, LBB0_18
; %bb.24:
	mov	x0, x23
	mov	x1, x22
	bl	_max732x_irq_setup
	cbnz	w0, LBB0_18
; %bb.25:
	ldr	x8, [x21]
	cbz	x8, LBB0_28
; %bb.26:
	ldp	w2, w1, [x23]
	ldr	w3, [x21, #8]
	mov	x0, x20
	blr	x8
	tbz	w0, #31, LBB0_28
; %bb.27:
	mov	x2, x0
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_28:
	mov	x0, x20
	mov	x1, x23
	bl	_i2c_set_clientdata
	mov	w0, #0
	b	LBB0_18
LBB0_29:
	stp	x24, x24, [x23, #32]
LBB0_30:
	cbz	x24, LBB0_32
; %bb.31:
	mov	w24, #1
	b	LBB0_20
LBB0_32:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no platform data\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate I2C device\n"

l_.str.2:                               ; @.str.2
	.asciz	"invalid I2C address specified %02x\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to allocate second group I2C device\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.4:                               ; @.str.4
	.asciz	"setup failed, %d\n"

	.no_dead_strip	_max732x_probe
.subsections_via_symbols
