	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dal_gpio_destroy               ## -- Begin function dal_gpio_destroy
	.p2align	4, 0x90
_dal_gpio_destroy:                      ## @dal_gpio_destroy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.2:
	callq	_dal_gpio_close
	movq	(%rbx), %rax
	movl	$-129, %ecx
	addl	(%rax), %ecx
	cmpl	$4, %ecx
	ja	LBB0_8
## %bb.3:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_4:
	movq	24(%rax), %rdi
	callq	_kfree
	movq	(%rbx), %rax
	addq	$24, %rax
	jmp	LBB0_7
LBB0_9:
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ASSERT_CRITICAL                ## TAILCALL
LBB0_6:
	movq	8(%rax), %rdi
	callq	_kfree
	movq	(%rbx), %rax
	addq	$8, %rax
	jmp	LBB0_7
LBB0_5:
	movq	16(%rax), %rdi
	callq	_kfree
	movq	(%rbx), %rax
	addq	$16, %rax
LBB0_7:
	movq	$0, (%rax)
LBB0_8:
	movq	(%rbx), %rdi
	callq	_kfree
	movq	$0, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dal_gpio_destroy               ; -- Begin function dal_gpio_destroy
	.p2align	2
_dal_gpio_destroy:                      ; @dal_gpio_destroy
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_5
; %bb.2:
	bl	_dal_gpio_close
	ldr	x8, [x19]
	ldr	w9, [x8]
	sub	w9, w9, #129
	cmp	w9, #4
	b.hi	LBB0_9
; %bb.3:
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_4
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_4:
	ldr	x0, [x8, #24]
	bl	_kfree
	ldr	x8, [x19]
	add	x8, x8, #24
	b	LBB0_8
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ASSERT_CRITICAL
LBB0_6:
	ldr	x0, [x8, #8]
	bl	_kfree
	ldr	x8, [x19]
	add	x8, x8, #8
	b	LBB0_8
LBB0_7:
	ldr	x0, [x8, #16]
	bl	_kfree
	ldr	x8, [x19]
	add	x8, x8, #16
LBB0_8:
	str	xzr, [x8]
LBB0_9:
	ldr	x0, [x19]
	bl	_kfree
	str	xzr, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
                                        ; -- End function
.subsections_via_symbols
