	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pt_gpio_probe
_pt_gpio_probe:                         ## @pt_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_ACPI_HANDLE
	leaq	-40(%rbp), %rsi
	movl	%eax, %edi
	callq	_acpi_bus_get_device
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r14
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_7:
	movq	%r14, %r12
	addq	$8, %r12
	movq	(%r14), %rax
	movq	_PT_INPUTDATA_REG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rax, %rcx
	movq	_PT_OUTPUTDATA_REG@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	addq	%rax, %r8
	movq	_PT_DIRECTION_REG@GOTPCREL(%rip), %rdx
	addq	(%rdx), %rax
	movq	_BGPIOF_READ_OUTPUT_REG_SET@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	subq	$8, %rsp
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	$0
	pushq	%rax
	callq	_bgpio_init
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_9
LBB0_10:
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_pt_gpio_request@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_pt_gpio_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_PT_TOTAL_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_9:
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_13
LBB0_12:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	_PT_SYNC_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_writel
	movq	_PT_CLOCKRATE_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PT GPIO device node not found\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Failed to map MMIO resource for PT GPIO.\n"

	.comm	_PT_INPUTDATA_REG,8,3           ## @PT_INPUTDATA_REG
	.comm	_PT_OUTPUTDATA_REG,8,3          ## @PT_OUTPUTDATA_REG
	.comm	_PT_DIRECTION_REG,8,3           ## @PT_DIRECTION_REG
	.comm	_BGPIOF_READ_OUTPUT_REG_SET,4,2 ## @BGPIOF_READ_OUTPUT_REG_SET
L_.str.2:                               ## @.str.2
	.asciz	"bgpio_init failed\n"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_pt_gpio_request,4,2            ## @pt_gpio_request
	.comm	_pt_gpio_free,4,2               ## @pt_gpio_free
	.comm	_PT_TOTAL_GPIO,4,2              ## @PT_TOTAL_GPIO
L_.str.3:                               ## @.str.3
	.asciz	"Failed to register GPIO lib\n"

	.comm	_PT_SYNC_REG,8,3                ## @PT_SYNC_REG
	.comm	_PT_CLOCKRATE_REG,8,3           ## @PT_CLOCKRATE_REG
L_.str.4:                               ## @.str.4
	.asciz	"PT GPIO driver loaded\n"

	.no_dead_strip	_pt_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pt_gpio_probe
_pt_gpio_probe:                         ; @pt_gpio_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_ACPI_HANDLE
	add	x1, sp, #8
	bl	_acpi_bus_get_device
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_3:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.5:
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_3
LBB0_7:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_8:
	mov	x21, x20
	ldr	x8, [x21], #8
Lloh11:
	adrp	x9, _PT_INPUTDATA_REG@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PT_INPUTDATA_REG@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x3, x9, x8
Lloh14:
	adrp	x9, _PT_OUTPUTDATA_REG@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PT_OUTPUTDATA_REG@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
Lloh17:
	adrp	x10, _PT_DIRECTION_REG@GOTPAGE
Lloh18:
	ldr	x10, [x10, _PT_DIRECTION_REG@GOTPAGEOFF]
	add	x4, x9, x8
Lloh19:
	ldr	x9, [x10]
	add	x6, x9, x8
Lloh20:
	adrp	x8, _BGPIOF_READ_OUTPUT_REG_SET@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BGPIOF_READ_OUTPUT_REG_SET@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x21
	mov	x1, x19
	mov	w2, #4
	mov	x5, #0
	mov	x7, #0
	bl	_bgpio_init
	cbz	w0, LBB0_10
; %bb.9:
	mov	x22, x0
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_10:
Lloh25:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh27:
	adrp	x9, _pt_gpio_request@GOTPAGE
Lloh28:
	ldr	x9, [x9, _pt_gpio_request@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #20]
Lloh31:
	adrp	x8, _pt_gpio_free@GOTPAGE
Lloh32:
	ldr	x8, [x8, _pt_gpio_free@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _PT_TOTAL_GPIO@GOTPAGE
Lloh35:
	ldr	x9, [x9, _PT_TOTAL_GPIO@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #12]
	mov	x0, x21
	mov	x1, x20
	bl	_gpiochip_add_data
	mov	x22, x0
	cbz	w0, LBB0_13
; %bb.11:
Lloh37:
	adrp	x1, l_.str.3@PAGE
Lloh38:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_3
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldr	x8, [x20]
Lloh39:
	adrp	x9, _PT_SYNC_REG@GOTPAGE
Lloh40:
	ldr	x9, [x9, _PT_SYNC_REG@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x20]
Lloh42:
	adrp	x9, _PT_CLOCKRATE_REG@GOTPAGE
Lloh43:
	ldr	x9, [x9, _PT_CLOCKRATE_REG@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
Lloh45:
	adrp	x1, l_.str.4@PAGE
Lloh46:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh29
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PT GPIO device node not found\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Failed to map MMIO resource for PT GPIO.\n"

	.comm	_PT_INPUTDATA_REG,8,3           ; @PT_INPUTDATA_REG
	.comm	_PT_OUTPUTDATA_REG,8,3          ; @PT_OUTPUTDATA_REG
	.comm	_PT_DIRECTION_REG,8,3           ; @PT_DIRECTION_REG
	.comm	_BGPIOF_READ_OUTPUT_REG_SET,4,2 ; @BGPIOF_READ_OUTPUT_REG_SET
l_.str.2:                               ; @.str.2
	.asciz	"bgpio_init failed\n"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_pt_gpio_request,4,2            ; @pt_gpio_request
	.comm	_pt_gpio_free,4,2               ; @pt_gpio_free
	.comm	_PT_TOTAL_GPIO,4,2              ; @PT_TOTAL_GPIO
l_.str.3:                               ; @.str.3
	.asciz	"Failed to register GPIO lib\n"

	.comm	_PT_SYNC_REG,8,3                ; @PT_SYNC_REG
	.comm	_PT_CLOCKRATE_REG,8,3           ; @PT_CLOCKRATE_REG
l_.str.4:                               ; @.str.4
	.asciz	"PT GPIO driver loaded\n"

	.no_dead_strip	_pt_gpio_probe
.subsections_via_symbols
