	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_build_gpiochip
_mtk_build_gpiochip:                    ## @mtk_build_gpiochip
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rax
	addq	$16, %rdi
	movq	_PINCTRL_PINCTRL_DEV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 76(%rax)
	movl	8(%rax), %ecx
	movl	%ecx, 72(%rax)
	movq	_gpiochip_generic_request@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 68(%rax)
	movq	_gpiochip_generic_free@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 64(%rax)
	movq	_mtk_gpio_get_direction@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 60(%rax)
	movq	_mtk_gpio_direction_input@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 56(%rax)
	movq	_mtk_gpio_direction_output@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 52(%rax)
	movq	_mtk_gpio_get@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 48(%rax)
	movq	_mtk_gpio_set@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 44(%rax)
	movq	_mtk_gpio_to_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rax)
	movq	_mtk_gpio_set_config@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rax)
	movl	$-1, 16(%rax)
	movq	(%rax), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax)
	movq	%rsi, 24(%rax)
	movl	$2, 20(%rax)
	movq	%rax, %rsi
	callq	_gpiochip_add_data
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PINCTRL_PINCTRL_DEV,4,2        ## @PINCTRL_PINCTRL_DEV
	.comm	_gpiochip_generic_request,4,2   ## @gpiochip_generic_request
	.comm	_gpiochip_generic_free,4,2      ## @gpiochip_generic_free
	.comm	_mtk_gpio_get_direction,4,2     ## @mtk_gpio_get_direction
	.comm	_mtk_gpio_direction_input,4,2   ## @mtk_gpio_direction_input
	.comm	_mtk_gpio_direction_output,4,2  ## @mtk_gpio_direction_output
	.comm	_mtk_gpio_get,4,2               ## @mtk_gpio_get
	.comm	_mtk_gpio_set,4,2               ## @mtk_gpio_set
	.comm	_mtk_gpio_to_irq,4,2            ## @mtk_gpio_to_irq
	.comm	_mtk_gpio_set_config,4,2        ## @mtk_gpio_set_config
	.no_dead_strip	_mtk_build_gpiochip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mtk_build_gpiochip
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mtk_build_gpiochip:                    ; @mtk_build_gpiochip
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
Lloh0:
	adrp	x9, _PINCTRL_PINCTRL_DEV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PINCTRL_PINCTRL_DEV@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x0, #8]
	stp	w10, w9, [x0, #72]
Lloh3:
	adrp	x9, _gpiochip_generic_request@GOTPAGE
Lloh4:
	ldr	x9, [x9, _gpiochip_generic_request@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _gpiochip_generic_free@GOTPAGE
Lloh7:
	ldr	x10, [x10, _gpiochip_generic_free@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _mtk_gpio_get_direction@GOTPAGE
Lloh10:
	ldr	x11, [x11, _mtk_gpio_get_direction@GOTPAGEOFF]
	stp	w10, w9, [x0, #64]
Lloh11:
	ldr	w9, [x11]
Lloh12:
	adrp	x10, _mtk_gpio_direction_input@GOTPAGE
Lloh13:
	ldr	x10, [x10, _mtk_gpio_direction_input@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	stp	w10, w9, [x0, #56]
Lloh15:
	adrp	x9, _mtk_gpio_direction_output@GOTPAGE
Lloh16:
	ldr	x9, [x9, _mtk_gpio_direction_output@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _mtk_gpio_get@GOTPAGE
Lloh19:
	ldr	x10, [x10, _mtk_gpio_get@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	stp	w10, w9, [x0, #48]
Lloh21:
	adrp	x9, _mtk_gpio_set@GOTPAGE
Lloh22:
	ldr	x9, [x9, _mtk_gpio_set@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _mtk_gpio_to_irq@GOTPAGE
Lloh25:
	ldr	x10, [x10, _mtk_gpio_to_irq@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
Lloh27:
	adrp	x11, _mtk_gpio_set_config@GOTPAGE
Lloh28:
	ldr	x11, [x11, _mtk_gpio_set_config@GOTPAGEOFF]
	stp	w10, w9, [x0, #40]
Lloh29:
	ldr	w9, [x11]
	ldr	x10, [x0]
	ldr	w10, [x10]
	stp	w10, w9, [x0, #32]
	str	x1, [x0, #24]
Lloh30:
	adrp	x9, lCPI0_0@PAGE
Lloh31:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x0, #16]!
	mov	x1, x8
	bl	_gpiochip_add_data
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PINCTRL_PINCTRL_DEV,4,2        ; @PINCTRL_PINCTRL_DEV
	.comm	_gpiochip_generic_request,4,2   ; @gpiochip_generic_request
	.comm	_gpiochip_generic_free,4,2      ; @gpiochip_generic_free
	.comm	_mtk_gpio_get_direction,4,2     ; @mtk_gpio_get_direction
	.comm	_mtk_gpio_direction_input,4,2   ; @mtk_gpio_direction_input
	.comm	_mtk_gpio_direction_output,4,2  ; @mtk_gpio_direction_output
	.comm	_mtk_gpio_get,4,2               ; @mtk_gpio_get
	.comm	_mtk_gpio_set,4,2               ; @mtk_gpio_set
	.comm	_mtk_gpio_to_irq,4,2            ; @mtk_gpio_to_irq
	.comm	_mtk_gpio_set_config,4,2        ; @mtk_gpio_set_config
	.no_dead_strip	_mtk_build_gpiochip
.subsections_via_symbols
