	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pca953x_probe
_pca953x_probe:                         ## @pca953x_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, %r13
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_dev_get_platdata
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r12d
	movl	4(%rbx), %eax
	movl	%eax, (%r15)
	movl	20(%rbx), %eax
	movl	24(%rbx), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, 64(%r15)
LBB0_6:
	movq	%r14, 56(%r15)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%r13, %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%r12d, %ecx
	addl	(%rax), %ecx
	je	LBB0_29
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_29
LBB0_4:
	movl	$-1, (%r15)
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.30:
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_10:
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
LBB0_9:
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_dev_err
	jmp	LBB0_29
LBB0_5:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_12:
	movq	%r13, 16(%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:
	movq	(%rax), %rax
	jmp	LBB0_14
LBB0_17:
	movq	%r14, %rdi
	callq	_device_get_match_data
	testq	%rax, %rax
	je	LBB0_18
LBB0_14:
	movq	%rax, 8(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	movq	_pca953x_i2c_regmap@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movq	%rax, 48(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	48(%r15), %rdi
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_16
LBB0_19:
	callq	_regcache_mark_dirty
	leaq	40(%r15), %rbx
	movq	%rbx, %rdi
	callq	_mutex_init
	movl	4(%r14), %edi
	callq	_i2c_adapter_depth
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_lockdep_set_subclass
	movq	_PCA_GPIO_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	8(%r15), %esi
	movq	%r15, %rdi
	callq	_pca953x_setup_gpio
	movl	8(%r15), %edi
	callq	_PCA_CHIP_TYPE
	movq	_PCA953X_TYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.20:
	movq	_pca953x_regs@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r15)
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_device_pca95xx_init
	jmp	LBB0_22
LBB0_21:
	movq	_pca957x_regs@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r15)
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_device_pca957x_init
LBB0_22:
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.23:
	movq	%r15, %rsi
	addq	$24, %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_devm_gpiochip_add_data
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.24:
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_pca953x_irq_setup
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.25:
	xorl	%r12d, %r12d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_29
## %bb.26:
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_29
## %bb.27:
	movl	24(%r15), %edx
	movl	28(%r15), %esi
	movl	16(%rax), %ecx
	movq	%r14, %rdi
	callq	*%rbx
	testl	%eax, %eax
	jns	LBB0_29
## %bb.28:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_warn
	jmp	LBB0_29
LBB0_18:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_16:
	movq	16(%r15), %rdi
	callq	_regulator_disable
LBB0_29:
	movl	%r12d, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.1:                               ## @.str.1
	.asciz	"vcc"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.2:                               ## @.str.2
	.asciz	"reg get err: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"reg en err: %d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_pca953x_i2c_regmap,4,2         ## @pca953x_i2c_regmap
	.comm	_PCA_GPIO_MASK,4,2              ## @PCA_GPIO_MASK
	.comm	_PCA953X_TYPE,8,3               ## @PCA953X_TYPE
	.comm	_pca953x_regs,4,2               ## @pca953x_regs
	.comm	_pca957x_regs,4,2               ## @pca957x_regs
L_.str.4:                               ## @.str.4
	.asciz	"setup failed, %d\n"

	.no_dead_strip	_pca953x_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pca953x_probe
_pca953x_probe:                         ; @pca953x_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_dev_get_platdata
	mov	x21, x0
	cbz	x0, LBB0_7
; %bb.2:
	ldp	w22, w8, [x21]
	str	w8, [x20]
	ldp	w8, w23, [x21, #20]
	str	w8, [x20, #64]
LBB0_3:
	str	x19, [x20, #56]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	mov	x26, x0
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.4:
	mov	x0, x26
	bl	_PTR_ERR
	mov	x25, x0
Lloh5:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_31
; %bb.5:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_6:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_31
LBB0_7:
	mov	w8, #-1
	str	w8, [x20]
Lloh13:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.8:
	mov	x0, x22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_9:
	mov	x0, x26
	bl	_regulator_enable
	cbz	w0, LBB0_13
; %bb.10:
	mov	x25, x0
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_11:
	mov	x0, x19
	mov	x2, x25
	bl	_dev_err
	b	LBB0_31
LBB0_12:
	mov	w23, #0
	mov	w22, #0
	b	LBB0_3
LBB0_13:
	str	x26, [x20, #16]
	cbz	x24, LBB0_15
; %bb.14:
	ldr	x0, [x24]
	b	LBB0_16
LBB0_15:
	mov	x0, x19
	bl	_device_get_match_data
	cbz	x0, LBB0_29
LBB0_16:
	str	x0, [x20, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
Lloh20:
	adrp	x1, _pca953x_i2c_regmap@GOTPAGE
Lloh21:
	ldr	x1, [x1, _pca953x_i2c_regmap@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	str	x0, [x20, #48]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20, #48]
	cbz	x8, LBB0_18
; %bb.17:
	bl	_PTR_ERR
	mov	x25, x0
	b	LBB0_30
LBB0_18:
	bl	_regcache_mark_dirty
	add	x24, x20, #40
	mov	x0, x24
	bl	_mutex_init
	ldr	w0, [x19, #4]
	bl	_i2c_adapter_depth
	mov	x1, x0
	mov	x0, x24
	bl	_lockdep_set_subclass
	ldr	w8, [x20, #8]
Lloh22:
	adrp	x9, _PCA_GPIO_MASK@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PCA_GPIO_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	and	w1, w9, w8
	mov	x0, x20
	bl	_pca953x_setup_gpio
	ldr	w0, [x20, #8]
	bl	_PCA_CHIP_TYPE
Lloh25:
	adrp	x8, _PCA953X_TYPE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PCA953X_TYPE@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.19:
Lloh28:
	adrp	x8, _pca953x_regs@GOTPAGE
Lloh29:
	ldr	x8, [x8, _pca953x_regs@GOTPAGEOFF]
	str	x8, [x20, #32]
	mov	x0, x20
	mov	x1, x23
	bl	_device_pca95xx_init
	b	LBB0_21
LBB0_20:
Lloh30:
	adrp	x8, _pca957x_regs@GOTPAGE
Lloh31:
	ldr	x8, [x8, _pca957x_regs@GOTPAGEOFF]
	str	x8, [x20, #32]
	mov	x0, x20
	mov	x1, x23
	bl	_device_pca957x_init
LBB0_21:
	mov	x25, x0
	cbnz	w0, LBB0_30
; %bb.22:
	add	x1, x20, #24
	mov	x0, x19
	mov	x2, x20
	bl	_devm_gpiochip_add_data
	mov	x25, x0
	cbnz	w0, LBB0_30
; %bb.23:
	mov	x0, x20
	mov	x1, x22
	bl	_pca953x_irq_setup
	mov	x25, x0
	cbnz	w0, LBB0_30
; %bb.24:
	cbz	x21, LBB0_28
; %bb.25:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_28
; %bb.26:
	ldp	w2, w1, [x20, #24]
	ldr	w3, [x21, #16]
	mov	x0, x19
	blr	x8
	tbz	w0, #31, LBB0_28
; %bb.27:
	mov	x2, x0
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_28:
	mov	w25, #0
	b	LBB0_31
LBB0_29:
Lloh34:
	adrp	x8, _ENODEV@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_30:
	ldr	x0, [x20, #16]
	bl	_regulator_disable
LBB0_31:
	mov	x0, x25
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.1:                               ; @.str.1
	.asciz	"vcc"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.2:                               ; @.str.2
	.asciz	"reg get err: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"reg en err: %d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_pca953x_i2c_regmap,4,2         ; @pca953x_i2c_regmap
	.comm	_PCA_GPIO_MASK,4,2              ; @PCA_GPIO_MASK
	.comm	_PCA953X_TYPE,8,3               ; @PCA953X_TYPE
	.comm	_pca953x_regs,4,2               ; @pca953x_regs
	.comm	_pca957x_regs,4,2               ; @pca957x_regs
l_.str.4:                               ; @.str.4
	.asciz	"setup failed, %d\n"

	.no_dead_strip	_pca953x_probe
.subsections_via_symbols
