	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dal_gpio_open_ex               ## -- Begin function dal_gpio_open_ex
	.p2align	4, 0x90
_dal_gpio_open_ex:                      ## @dal_gpio_open_ex
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	callq	_ASSERT_CRITICAL
	movq	_GPIO_RESULT_ALREADY_OPENED@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_2:
	cmpl	$0, 4(%rdi)
	je	LBB0_3
## %bb.5:
	movl	%esi, (%rdi)
	popq	%rbp
	jmp	_dal_gpio_service_open          ## TAILCALL
LBB0_3:
	xorl	%edi, %edi
	callq	_ASSERT_CRITICAL
	movq	_GPIO_RESULT_NON_SPECIFIC_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_RESULT_ALREADY_OPENED,4,2 ## @GPIO_RESULT_ALREADY_OPENED
	.comm	_GPIO_RESULT_NON_SPECIFIC_ERROR,4,2 ## @GPIO_RESULT_NON_SPECIFIC_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dal_gpio_open_ex               ; -- Begin function dal_gpio_open_ex
	.p2align	2
_dal_gpio_open_ex:                      ; @dal_gpio_open_ex
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	w0, #0
	bl	_ASSERT_CRITICAL
Lloh0:
	adrp	x8, _GPIO_RESULT_ALREADY_OPENED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIO_RESULT_ALREADY_OPENED@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_5
; %bb.4:
	str	w1, [x0]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_dal_gpio_service_open
LBB0_5:
	mov	w0, #0
	bl	_ASSERT_CRITICAL
Lloh2:
	adrp	x8, _GPIO_RESULT_NON_SPECIFIC_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GPIO_RESULT_NON_SPECIFIC_ERROR@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_RESULT_ALREADY_OPENED,4,2 ; @GPIO_RESULT_ALREADY_OPENED
	.comm	_GPIO_RESULT_NON_SPECIFIC_ERROR,4,2 ; @GPIO_RESULT_NON_SPECIFIC_ERROR
.subsections_via_symbols
