	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_gpiolib_register
_meson_gpiolib_register:                ## @meson_gpiolib_register
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %ecx
	leaq	12(%rdi), %rdi
	movl	%ecx, 60(%rbx)
	movl	8(%rbx), %ecx
	movl	%ecx, 56(%rbx)
	movq	_gpiochip_generic_request@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 52(%rbx)
	movq	_gpiochip_generic_free@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 48(%rbx)
	movq	_meson_gpio_direction_input@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 44(%rbx)
	movq	_meson_gpio_direction_output@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rbx)
	movq	_meson_gpio_get@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rbx)
	movq	_meson_gpio_set@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rbx)
	movl	$-1, 12(%rbx)
	movl	4(%rax), %eax
	movl	%eax, 28(%rbx)
	movabsq	$8589934592, %rax               ## imm = 0x200000000
	movq	%rax, 16(%rbx)
	movl	64(%rbx), %eax
	movl	%eax, 24(%rbx)
	movq	%rbx, %rsi
	callq	_gpiochip_add_data
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	movq	(%rbx), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_2:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gpiochip_generic_request,4,2   ## @gpiochip_generic_request
	.comm	_gpiochip_generic_free,4,2      ## @gpiochip_generic_free
	.comm	_meson_gpio_direction_input,4,2 ## @meson_gpio_direction_input
	.comm	_meson_gpio_direction_output,4,2 ## @meson_gpio_direction_output
	.comm	_meson_gpio_get,4,2             ## @meson_gpio_get
	.comm	_meson_gpio_set,4,2             ## @meson_gpio_set
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't add gpio chip %s\n"

	.no_dead_strip	_meson_gpiolib_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_gpiolib_register
_meson_gpiolib_register:                ; @meson_gpiolib_register
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	ldp	w9, w8, [x8]
	str	w9, [x0, #60]
	ldr	w9, [x0, #8]
Lloh0:
	adrp	x10, _gpiochip_generic_request@GOTPAGE
Lloh1:
	ldr	x10, [x10, _gpiochip_generic_request@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	stp	w10, w9, [x0, #52]
Lloh3:
	adrp	x9, _gpiochip_generic_free@GOTPAGE
Lloh4:
	ldr	x9, [x9, _gpiochip_generic_free@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _meson_gpio_direction_input@GOTPAGE
Lloh7:
	ldr	x10, [x10, _meson_gpio_direction_input@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	stp	w10, w9, [x0, #44]
Lloh9:
	adrp	x9, _meson_gpio_direction_output@GOTPAGE
Lloh10:
	ldr	x9, [x9, _meson_gpio_direction_output@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _meson_gpio_get@GOTPAGE
Lloh13:
	ldr	x10, [x10, _meson_gpio_get@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _meson_gpio_set@GOTPAGE
Lloh16:
	ldr	x11, [x11, _meson_gpio_set@GOTPAGEOFF]
	stp	w10, w9, [x0, #36]
Lloh17:
	ldr	w9, [x11]
	stp	w8, w9, [x0, #28]
	movi	d0, #0x000000ffffffff
	str	d0, [x0, #12]!
	ldr	w8, [x19, #64]
	mov	w9, #2
	stp	w9, w8, [x19, #20]
	mov	x1, x19
	bl	_gpiochip_add_data
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	w2, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.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
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_gpiochip_generic_request,4,2   ; @gpiochip_generic_request
	.comm	_gpiochip_generic_free,4,2      ; @gpiochip_generic_free
	.comm	_meson_gpio_direction_input,4,2 ; @meson_gpio_direction_input
	.comm	_meson_gpio_direction_output,4,2 ; @meson_gpio_direction_output
	.comm	_meson_gpio_get,4,2             ; @meson_gpio_get
	.comm	_meson_gpio_set,4,2             ; @meson_gpio_set
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't add gpio chip %s\n"

	.no_dead_strip	_meson_gpiolib_register
.subsections_via_symbols
