	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dal_ddc_open                   ## -- Begin function dal_ddc_open
	.p2align	4, 0x90
_dal_ddc_open:                          ## @dal_ddc_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	callq	_dal_gpio_open_ex
	movq	_GPIO_RESULT_OK@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jne	LBB0_1
## %bb.2:
	movq	8(%r14), %rdi
	movl	%ebx, %esi
	callq	_dal_gpio_open_ex
	cmpl	(%r13), %eax
	jne	LBB0_3
## %bb.4:
	movq	_GPIO_MODE_INPUT@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_5
## %bb.6:
	movq	_GPIO_CONFIG_TYPE_I2C_AUX_DUAL_MODE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_BREAK_TO_DEBUGGER
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_BREAK_TO_DEBUGGER
	jmp	LBB0_9
LBB0_5:
	movq	_GPIO_CONFIG_TYPE_DDC@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	%r15d, -56(%rbp)
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_FROM_HW_GPIO_PIN
	movq	%rax, %rbx
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_FROM_HW_GPIO_PIN
	xorl	%ecx, %ecx
	cmpq	$0, (%rbx)
	setne	%cl
	movl	%ecx, -52(%rbp)
	xorl	%ecx, %ecx
	cmpq	$0, (%rax)
	setne	%cl
	movl	%ecx, -48(%rbp)
	movq	(%r14), %rdi
	leaq	-56(%rbp), %rsi
	callq	_dal_gpio_set_config
	movl	%eax, %r12d
	cmpl	(%r13), %eax
	je	LBB0_10
## %bb.8:
	xorl	%eax, %eax
	callq	_BREAK_TO_DEBUGGER
	movq	8(%r14), %rdi
	callq	_dal_gpio_close
LBB0_9:
	movq	(%r14), %rdi
	callq	_dal_gpio_close
LBB0_10:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_RESULT_OK,4,2             ## @GPIO_RESULT_OK
	.comm	_GPIO_MODE_INPUT,4,2            ## @GPIO_MODE_INPUT
	.comm	_GPIO_CONFIG_TYPE_I2C_AUX_DUAL_MODE,4,2 ## @GPIO_CONFIG_TYPE_I2C_AUX_DUAL_MODE
	.comm	_GPIO_CONFIG_TYPE_DDC,4,2       ## @GPIO_CONFIG_TYPE_DDC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dal_ddc_open                   ; -- Begin function dal_ddc_open
	.p2align	2
_dal_ddc_open:                          ; @dal_ddc_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x0, [x0]
	bl	_dal_gpio_open_ex
Lloh0:
	adrp	x23, _GPIO_RESULT_OK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GPIO_RESULT_OK@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.1:
	ldr	x0, [x19, #8]
	mov	x1, x22
	bl	_dal_gpio_open_ex
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.2:
Lloh2:
	adrp	x8, _GPIO_MODE_INPUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GPIO_MODE_INPUT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _GPIO_CONFIG_TYPE_I2C_AUX_DUAL_MODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GPIO_CONFIG_TYPE_I2C_AUX_DUAL_MODE@GOTPAGEOFF]
Lloh7:
	adrp	x10, _GPIO_CONFIG_TYPE_DDC@GOTPAGE
Lloh8:
	ldr	x10, [x10, _GPIO_CONFIG_TYPE_DDC@GOTPAGEOFF]
	cmp	w8, w22
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [sp, #12]
	str	w21, [sp]
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_FROM_HW_GPIO_PIN
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_FROM_HW_GPIO_PIN
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w8, ne
	str	w8, [sp, #4]
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w8, ne
	str	w8, [sp, #8]
	ldr	x0, [x19]
	mov	x1, sp
	bl	_dal_gpio_set_config
	mov	x20, x0
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.3:
	bl	_BREAK_TO_DEBUGGER
	ldr	x0, [x19, #8]
	bl	_dal_gpio_close
	b	LBB0_6
LBB0_4:
	mov	x20, x0
	bl	_BREAK_TO_DEBUGGER
	b	LBB0_7
LBB0_5:
	mov	x20, x0
	bl	_BREAK_TO_DEBUGGER
LBB0_6:
	ldr	x0, [x19]
	bl	_dal_gpio_close
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_RESULT_OK,4,2             ; @GPIO_RESULT_OK
	.comm	_GPIO_MODE_INPUT,4,2            ; @GPIO_MODE_INPUT
	.comm	_GPIO_CONFIG_TYPE_I2C_AUX_DUAL_MODE,4,2 ; @GPIO_CONFIG_TYPE_I2C_AUX_DUAL_MODE
	.comm	_GPIO_CONFIG_TYPE_DDC,4,2       ; @GPIO_CONFIG_TYPE_DDC
.subsections_via_symbols
