	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp_gpio_probe
_lp_gpio_probe:                         ## @lp_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.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	$120, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, 112(%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	_IORESOURCE_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %r13
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%r13, %r13
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	(%r13), %rax
	movq	%rax, 104(%rbx)
	movq	%r13, %rdi
	callq	_resource_size
	movq	104(%rbx), %rsi
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_devm_request_region
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	addq	$96, %rdi
	callq	_spin_lock_init
	movq	%r14, %rdi
	callq	_dev_name
	movl	%eax, 88(%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%rbx)
	movq	_lp_gpio_request@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	movq	_lp_gpio_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%rbx)
	movq	_lp_gpio_direction_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	_lp_gpio_direction_output@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	movq	_lp_gpio_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	_lp_gpio_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%rbx)
	movl	$-1, (%rbx)
	movq	_LP_NUM_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movl	$0, 4(%rbx)
	movq	%r14, 48(%rbx)
	testq	%r15, %r15
	je	LBB0_10
## %bb.7:
	cmpq	$0, (%r15)
	je	LBB0_10
## %bb.8:
	movq	_lp_irqchip@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	_lp_gpio_irq_init_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_lp_gpio_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	$1, 8(%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	movl	(%r15), %ecx
	movl	%ecx, (%rax)
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_handle_bad_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
LBB0_10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_devm_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_13
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_13
LBB0_5:
	movl	104(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_13
LBB0_12:
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	xorl	%r12d, %r12d
LBB0_13:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_IO,4,2              ## @IORESOURCE_IO
	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing IO resources\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"lp-gpio"

L_.str.2:                               ## @.str.2
	.asciz	"failed requesting IO region 0x%x\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_lp_gpio_request,4,2            ## @lp_gpio_request
	.comm	_lp_gpio_free,4,2               ## @lp_gpio_free
	.comm	_lp_gpio_direction_input,4,2    ## @lp_gpio_direction_input
	.comm	_lp_gpio_direction_output,4,2   ## @lp_gpio_direction_output
	.comm	_lp_gpio_get,4,2                ## @lp_gpio_get
	.comm	_lp_gpio_set,4,2                ## @lp_gpio_set
	.comm	_LP_NUM_GPIO,4,2                ## @LP_NUM_GPIO
	.comm	_lp_irqchip,4,2                 ## @lp_irqchip
	.comm	_lp_gpio_irq_init_hw,4,2        ## @lp_gpio_irq_init_hw
	.comm	_lp_gpio_irq_handler,4,2        ## @lp_gpio_irq_handler
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
	.comm	_handle_bad_irq,4,2             ## @handle_bad_irq
L_.str.3:                               ## @.str.3
	.asciz	"failed adding lp-gpio chip\n"

	.no_dead_strip	_lp_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lp_gpio_probe
_lp_gpio_probe:                         ; @lp_gpio_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	x19, x0
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #120
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #112]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh2:
	adrp	x8, _IORESOURCE_IO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IORESOURCE_IO@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x22, x0
Lloh5:
	adrp	x8, _IORESOURCE_IRQ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IORESOURCE_IRQ@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x22, LBB0_10
; %bb.2:
	mov	x21, x0
	ldr	x8, [x22]
	str	x8, [x20, #104]
	mov	x0, x22
	bl	_resource_size
	mov	x2, x0
	ldr	x1, [x20, #104]
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_request_region
	cbz	w0, LBB0_11
; %bb.3:
	add	x0, x20, #96
	bl	_spin_lock_init
	mov	x0, x19
	bl	_dev_name
	str	w0, [x20, #88]
Lloh10:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _lp_gpio_request@GOTPAGE
Lloh14:
	ldr	x9, [x9, _lp_gpio_request@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #80]
Lloh16:
	adrp	x8, _lp_gpio_free@GOTPAGE
Lloh17:
	ldr	x8, [x8, _lp_gpio_free@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _lp_gpio_direction_input@GOTPAGE
Lloh20:
	ldr	x9, [x9, _lp_gpio_direction_input@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _lp_gpio_direction_output@GOTPAGE
Lloh23:
	ldr	x10, [x10, _lp_gpio_direction_output@GOTPAGEOFF]
	stp	w9, w8, [x20, #72]
Lloh24:
	ldr	w8, [x10]
Lloh25:
	adrp	x9, _lp_gpio_get@GOTPAGE
Lloh26:
	ldr	x9, [x9, _lp_gpio_get@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #64]
Lloh28:
	adrp	x8, _lp_gpio_set@GOTPAGE
Lloh29:
	ldr	x8, [x8, _lp_gpio_set@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	movi	d0, #0x000000ffffffff
	str	d0, [x20]
Lloh31:
	adrp	x9, _LP_NUM_GPIO@GOTPAGE
Lloh32:
	ldr	x9, [x9, _LP_NUM_GPIO@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #56]
	str	x19, [x20, #48]
	cbz	x21, LBB0_7
; %bb.4:
	ldr	x8, [x21]
	cbz	x8, LBB0_7
; %bb.5:
Lloh34:
	adrp	x8, _lp_irqchip@GOTPAGE
Lloh35:
	ldr	x8, [x8, _lp_irqchip@GOTPAGEOFF]
	str	x8, [x20, #40]
Lloh36:
	adrp	x8, _lp_gpio_irq_init_hw@GOTPAGE
Lloh37:
	ldr	x8, [x8, _lp_gpio_irq_init_hw@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _lp_gpio_irq_handler@GOTPAGE
Lloh40:
	ldr	x9, [x9, _lp_gpio_irq_handler@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #32]
	mov	w8, #1
	str	w8, [x20, #8]
	ldr	w3, [x23]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #4
	bl	_devm_kcalloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_9
; %bb.6:
	ldr	x8, [x21]
	str	w8, [x0]
Lloh42:
	adrp	x8, _IRQ_TYPE_NONE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
Lloh45:
	adrp	x9, _handle_bad_irq@GOTPAGE
Lloh46:
	ldr	x9, [x9, _handle_bad_irq@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x20
	bl	_devm_gpiochip_add_data
	mov	x20, x0
	cbz	w0, LBB0_14
; %bb.8:
Lloh48:
	adrp	x1, l_.str.3@PAGE
Lloh49:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_13
LBB0_9:
Lloh50:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh52:
	adrp	x1, l_.str@PAGE
Lloh53:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh54:
	adrp	x8, _EINVAL@GOTPAGE
Lloh55:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
	ldr	x8, [x20, #104]
	str	x8, [sp]
Lloh56:
	adrp	x1, l_.str.2@PAGE
Lloh57:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh58:
	adrp	x8, _EBUSY@GOTPAGE
Lloh59:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_13:
	mov	x0, x20
	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_14:
	mov	x0, x19
	bl	_pm_runtime_enable
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpAdd	Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_IO,4,2              ; @IORESOURCE_IO
	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing IO resources\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"lp-gpio"

l_.str.2:                               ; @.str.2
	.asciz	"failed requesting IO region 0x%x\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_lp_gpio_request,4,2            ; @lp_gpio_request
	.comm	_lp_gpio_free,4,2               ; @lp_gpio_free
	.comm	_lp_gpio_direction_input,4,2    ; @lp_gpio_direction_input
	.comm	_lp_gpio_direction_output,4,2   ; @lp_gpio_direction_output
	.comm	_lp_gpio_get,4,2                ; @lp_gpio_get
	.comm	_lp_gpio_set,4,2                ; @lp_gpio_set
	.comm	_LP_NUM_GPIO,4,2                ; @LP_NUM_GPIO
	.comm	_lp_irqchip,4,2                 ; @lp_irqchip
	.comm	_lp_gpio_irq_init_hw,4,2        ; @lp_gpio_irq_init_hw
	.comm	_lp_gpio_irq_handler,4,2        ; @lp_gpio_irq_handler
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
	.comm	_handle_bad_irq,4,2             ; @handle_bad_irq
l_.str.3:                               ; @.str.3
	.asciz	"failed adding lp-gpio chip\n"

	.no_dead_strip	_lp_gpio_probe
.subsections_via_symbols
