	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dc_gpiochip_add
_dc_gpiochip_add:                       ## @dc_gpiochip_add
	.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, %rbx
	leaq	8(%rdi), %r14
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rdi)
	movl	(%rdi), %eax
	movl	%eax, 52(%rdi)
	movq	_gpiochip_generic_request@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rdi)
	movq	_gpiochip_generic_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rdi)
	movq	_dc_gpio_direction_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rdi)
	movq	_dc_gpio_direction_output@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rdi)
	movq	_dc_gpio_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rdi)
	movq	_dc_gpio_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rdi)
	movl	$-1, 8(%rdi)
	movq	_PINS_COUNT@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, 24(%rdi)
	movq	%rsi, 16(%rdi)
	movl	$2, 12(%rdi)
	addq	$4, %rdi
	callq	_spin_lock_init
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_gpiochip_add_data
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	callq	_dev_name
	movl	(%r12), %r8d
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_gpiochip_add_pin_range
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_gpiochip_remove
	movl	%ebx, %r15d
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %r15d
LBB0_4:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
	.comm	_gpiochip_generic_request,4,2   ## @gpiochip_generic_request
	.comm	_gpiochip_generic_free,4,2      ## @gpiochip_generic_free
	.comm	_dc_gpio_direction_input,4,2    ## @dc_gpio_direction_input
	.comm	_dc_gpio_direction_output,4,2   ## @dc_gpio_direction_output
	.comm	_dc_gpio_get,4,2                ## @dc_gpio_get
	.comm	_dc_gpio_set,4,2                ## @dc_gpio_set
	.comm	_PINS_COUNT,4,2                 ## @PINS_COUNT
	.no_dead_strip	_dc_gpiochip_add
.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 dc_gpiochip_add
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dc_gpiochip_add:                       ; @dc_gpiochip_add
	.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
Lloh0:
	adrp	x8, _DRIVER_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRIVER_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #56]
	ldr	w8, [x0]
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]
	stp	w9, w8, [x0, #48]
Lloh8:
	ldr	w8, [x10]
Lloh9:
	adrp	x9, _dc_gpio_direction_input@GOTPAGE
Lloh10:
	ldr	x9, [x9, _dc_gpio_direction_input@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #40]
Lloh12:
	adrp	x8, _dc_gpio_direction_output@GOTPAGE
Lloh13:
	ldr	x8, [x8, _dc_gpio_direction_output@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _dc_gpio_get@GOTPAGE
Lloh16:
	ldr	x9, [x9, _dc_gpio_get@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #32]
Lloh18:
	adrp	x8, _dc_gpio_set@GOTPAGE
Lloh19:
	ldr	x8, [x8, _dc_gpio_set@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x21, _PINS_COUNT@GOTPAGE
Lloh22:
	ldr	x21, [x21, _PINS_COUNT@GOTPAGEOFF]
	ldr	w9, [x21]
	stp	w9, w8, [x0, #24]
	str	x1, [x0, #16]
Lloh23:
	adrp	x8, lCPI0_0@PAGE
Lloh24:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	mov	x20, x0
	add	x0, x0, #4
	str	d0, [x20, #8]!
	bl	_spin_lock_init
	mov	x0, x20
	mov	x1, x19
	bl	_gpiochip_add_data
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w0, [x19]
	bl	_dev_name
	mov	x1, x0
	ldr	w4, [x21]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	bl	_gpiochip_add_pin_range
	mov	x19, x0
	mov	w0, #0
	tbz	w19, #31, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_gpiochip_remove
	mov	x0, x19
LBB0_3:
	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 AdrpLdr	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.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	_DRIVER_NAME,4,2                ; @DRIVER_NAME
	.comm	_gpiochip_generic_request,4,2   ; @gpiochip_generic_request
	.comm	_gpiochip_generic_free,4,2      ; @gpiochip_generic_free
	.comm	_dc_gpio_direction_input,4,2    ; @dc_gpio_direction_input
	.comm	_dc_gpio_direction_output,4,2   ; @dc_gpio_direction_output
	.comm	_dc_gpio_get,4,2                ; @dc_gpio_get
	.comm	_dc_gpio_set,4,2                ; @dc_gpio_set
	.comm	_PINS_COUNT,4,2                 ; @PINS_COUNT
	.no_dead_strip	_dc_gpiochip_add
.subsections_via_symbols
