	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpo_twl6040_probe
_gpo_twl6040_probe:                     ## @gpo_twl6040_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	callq	_dev_get_drvdata
	movq	_twl6040gpo_chip@GOTPCREL(%rip), %r14
	movl	$-1, (%r14)
	movq	%rax, %rdi
	callq	_twl6040_get_revid
	movq	_TWL6041_REV_ES2_0@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setl	%dl
	leal	(%rdx,%rdx), %eax
	incl	%eax
	movl	%eax, 4(%r14)
	movq	%r15, 16(%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_devm_gpiochip_add_data
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	movl	$0, 4(%r14)
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_twl6040gpo_chip,24,3           ## @twl6040gpo_chip
	.comm	_TWL6041_REV_ES2_0,8,3          ## @TWL6041_REV_ES2_0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not register gpiochip, %d\n"

	.no_dead_strip	_gpo_twl6040_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpo_twl6040_probe
_gpo_twl6040_probe:                     ; @gpo_twl6040_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x0, [x0]
	bl	_dev_get_drvdata
Lloh0:
	adrp	x20, _twl6040gpo_chip@GOTPAGE
Lloh1:
	ldr	x20, [x20, _twl6040gpo_chip@GOTPAGEOFF]
	mov	w8, #-1
	str	w8, [x20]
	bl	_twl6040_get_revid
Lloh2:
	adrp	x8, _TWL6041_REV_ES2_0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TWL6041_REV_ES2_0@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	mov	w8, #3
	csinc	w8, w8, wzr, lt
	str	w8, [x20, #4]
	str	x19, [x20, #16]
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_devm_gpiochip_add_data
	mov	x21, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
	str	wzr, [x20, #4]
LBB0_2:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_twl6040gpo_chip,24,3           ; @twl6040gpo_chip
	.comm	_TWL6041_REV_ES2_0,8,3          ; @TWL6041_REV_ES2_0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not register gpiochip, %d\n"

	.no_dead_strip	_gpo_twl6040_probe
.subsections_via_symbols
