	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dal_gpio_service_open          ## -- Begin function dal_gpio_service_open
	.p2align	4, 0x90
_dal_gpio_service_open:                 ## @dal_gpio_service_open
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %r14
	movl	(%rdi), %ebx
	movq	8(%r14), %rax
	cmpl	$0, (%rax,%rbx,4)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %r13
	movl	4(%rdi), %r12d
	movl	16(%rdi), %r15d
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_is_pin_busy
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	xorl	%edi, %edi
	callq	_ASSERT_CRITICAL
	movq	_GPIO_RESULT_DEVICE_BUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_3:
	xorl	%edi, %edi
	callq	_ASSERT_CRITICAL
LBB0_15:
	movq	_GPIO_RESULT_OPEN_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_4:
	leal	-128(%rbx), %eax
	cmpl	$5, %eax
	ja	LBB0_13
## %bb.5:
	leaq	8(%r13), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movq	(%r14), %rax
	movq	%r13, %rdi
	callq	*40(%rax)
	movq	%rax, 8(%r13)
	movq	(%r14), %rcx
	addq	$32, %rcx
	jmp	LBB0_9
LBB0_7:
	movq	(%r14), %rax
	movq	%r13, %rdi
	callq	*8(%rax)
	movq	%rax, 8(%r13)
	movq	(%r14), %rcx
	jmp	LBB0_9
LBB0_8:
	movq	(%r14), %rax
	movq	%r13, %rdi
	callq	*24(%rax)
	movq	%rax, 8(%r13)
	movq	(%r14), %rcx
	addq	$16, %rcx
LBB0_9:
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	*(%rcx)
LBB0_10:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.11:
	movq	(%rdi), %rax
	movl	%r12d, %esi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_set_pin_busy
	movq	_GPIO_RESULT_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_13:
	xorl	%edi, %edi
	callq	_ASSERT_CRITICAL
	movq	_GPIO_RESULT_NON_SPECIFIC_ERROR@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%edi, %edi
	callq	_ASSERT_CRITICAL
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_dal_gpio_service_close
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_7
	.long	L0_0_set_10
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_GPIO_RESULT_OPEN_FAILED,4,2    ## @GPIO_RESULT_OPEN_FAILED
	.comm	_GPIO_RESULT_DEVICE_BUSY,4,2    ## @GPIO_RESULT_DEVICE_BUSY
	.comm	_GPIO_RESULT_NON_SPECIFIC_ERROR,4,2 ## @GPIO_RESULT_NON_SPECIFIC_ERROR
	.comm	_GPIO_RESULT_OK,4,2             ## @GPIO_RESULT_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dal_gpio_service_open          ; -- Begin function dal_gpio_service_open
	.p2align	2
_dal_gpio_service_open:                 ; @dal_gpio_service_open
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x19, [x0, #24]
	ldr	w20, [x0]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x20, lsl #2]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x24, x0
	ldr	w21, [x0, #16]
	ldr	w22, [x0, #4]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_is_pin_busy
	cbz	x0, LBB0_5
; %bb.2:
	mov	w0, #0
	bl	_ASSERT_CRITICAL
Lloh0:
	adrp	x8, _GPIO_RESULT_DEVICE_BUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIO_RESULT_DEVICE_BUSY@GOTPAGEOFF]
	b	LBB0_16
LBB0_3:
	mov	w0, #0
	bl	_ASSERT_CRITICAL
LBB0_4:
Lloh2:
	adrp	x8, _GPIO_RESULT_OPEN_FAILED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GPIO_RESULT_OPEN_FAILED@GOTPAGEOFF]
	b	LBB0_16
LBB0_5:
	sub	w8, w20, #128
	cmp	w8, #5
	b.hi	LBB0_8
; %bb.6:
	add	x23, x24, #8
Lloh4:
	adrp	x9, lJTI0_0@PAGE
Lloh5:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	ldr	x8, [x19]
	ldr	x8, [x8, #40]
	mov	x0, x24
	blr	x8
	str	x0, [x24, #8]
	ldr	x8, [x19]
	add	x8, x8, #32
	b	LBB0_11
LBB0_8:
	mov	w0, #0
	b	LBB0_15
LBB0_9:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	mov	x0, x24
	blr	x8
	str	x0, [x24, #8]
	ldr	x8, [x19]
	b	LBB0_11
LBB0_10:
	ldr	x8, [x19]
	ldr	x8, [x8, #24]
	mov	x0, x24
	blr	x8
	str	x0, [x24, #8]
	ldr	x8, [x19]
	add	x8, x8, #16
LBB0_11:
	ldr	x8, [x8]
	mov	x1, x21
	blr	x8
LBB0_12:
	ldr	x0, [x23]
	cbz	x0, LBB0_15
; %bb.13:
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	x1, x22
	blr	x8
	cbz	w0, LBB0_17
; %bb.14:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_set_pin_busy
Lloh6:
	adrp	x8, _GPIO_RESULT_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GPIO_RESULT_OK@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
	bl	_ASSERT_CRITICAL
Lloh8:
	adrp	x8, _GPIO_RESULT_NON_SPECIFIC_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GPIO_RESULT_NON_SPECIFIC_ERROR@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_17:
	bl	_ASSERT_CRITICAL
	mov	x0, x19
	mov	x1, x23
	bl	_dal_gpio_service_close
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
                                        ; -- End function
	.comm	_GPIO_RESULT_OPEN_FAILED,4,2    ; @GPIO_RESULT_OPEN_FAILED
	.comm	_GPIO_RESULT_DEVICE_BUSY,4,2    ; @GPIO_RESULT_DEVICE_BUSY
	.comm	_GPIO_RESULT_NON_SPECIFIC_ERROR,4,2 ; @GPIO_RESULT_NON_SPECIFIC_ERROR
	.comm	_GPIO_RESULT_OK,4,2             ; @GPIO_RESULT_OK
.subsections_via_symbols
