	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function palmas_gpio_probe
_palmas_gpio_probe:                     ## @palmas_gpio_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	testq	%r12, %r12
	jne	LBB0_4
## %bb.3:
	movq	_palmas_dev_data@GOTPCREL(%rip), %r12
LBB0_4:
	movq	%r15, 56(%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	%r14, %rdi
	callq	_dev_name
	movl	%eax, 48(%rbx)
	movl	(%r12), %eax
	movl	%eax, 44(%rbx)
	movl	$1, (%rbx)
	movq	_palmas_gpio_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_palmas_gpio_output@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_palmas_gpio_to_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_palmas_gpio_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_palmas_gpio_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%r14, 16(%rbx)
	movl	(%r15), %edi
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	LBB0_7
LBB0_6:
	movl	$-1, %eax
LBB0_7:
	movl	%eax, 4(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_devm_gpiochip_add_data
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dev_err
LBB0_10:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_palmas_dev_data,4,2            ## @palmas_dev_data
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_palmas_gpio_input,4,2          ## @palmas_gpio_input
	.comm	_palmas_gpio_output,4,2         ## @palmas_gpio_output
	.comm	_palmas_gpio_to_irq,4,2         ## @palmas_gpio_to_irq
	.comm	_palmas_gpio_set,4,2            ## @palmas_gpio_set
	.comm	_palmas_gpio_get,4,2            ## @palmas_gpio_get
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not register gpiochip, %d\n"

	.no_dead_strip	_palmas_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function palmas_gpio_probe
_palmas_gpio_probe:                     ; @palmas_gpio_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	w0, [x0, #4]
	bl	_dev_get_drvdata
	mov	x21, x0
	mov	x0, x19
	bl	_of_device_get_match_data
	mov	x22, x0
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_6
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _palmas_dev_data@GOTPAGE
Lloh4:
	ldr	x8, [x8, _palmas_dev_data@GOTPAGEOFF]
	cmp	x22, #0
	csel	x22, x8, x22, eq
	str	x21, [x0, #56]
Lloh5:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0, #52]
	mov	x0, x19
	bl	_dev_name
	str	w0, [x20, #48]
	ldr	w8, [x22]
	mov	w9, #1
	str	w9, [x20]
Lloh8:
	adrp	x9, _palmas_gpio_input@GOTPAGE
Lloh9:
	ldr	x9, [x9, _palmas_gpio_input@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #40]
Lloh11:
	adrp	x8, _palmas_gpio_output@GOTPAGE
Lloh12:
	ldr	x8, [x8, _palmas_gpio_output@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _palmas_gpio_to_irq@GOTPAGE
Lloh15:
	ldr	x9, [x9, _palmas_gpio_to_irq@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #32]
Lloh17:
	adrp	x8, _palmas_gpio_set@GOTPAGE
Lloh18:
	ldr	x8, [x8, _palmas_gpio_set@GOTPAGEOFF]
Lloh19:
	adrp	x9, _palmas_gpio_get@GOTPAGE
Lloh20:
	ldr	x9, [x9, _palmas_gpio_get@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
	str	x19, [x20, #16]
	ldr	w0, [x21]
	bl	_dev_get_platdata
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x0]
	cbnz	w8, LBB0_4
LBB0_3:
	mov	w8, #-1
LBB0_4:
	str	w8, [x20, #4]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x20
	bl	_devm_gpiochip_add_data
	mov	x21, x0
	tbnz	w0, #31, LBB0_7
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	b	LBB0_8
LBB0_6:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_7:
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
LBB0_8:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_palmas_dev_data,4,2            ; @palmas_dev_data
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_palmas_gpio_input,4,2          ; @palmas_gpio_input
	.comm	_palmas_gpio_output,4,2         ; @palmas_gpio_output
	.comm	_palmas_gpio_to_irq,4,2         ; @palmas_gpio_to_irq
	.comm	_palmas_gpio_set,4,2            ; @palmas_gpio_set
	.comm	_palmas_gpio_get,4,2            ; @palmas_gpio_get
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not register gpiochip, %d\n"

	.no_dead_strip	_palmas_gpio_probe
.subsections_via_symbols
