	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_hpd_gpio                   ## -- Begin function get_hpd_gpio
	.p2align	4, 0x90
_get_hpd_gpio:                          ## @get_hpd_gpio
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	leaq	-32(%rbp), %rdx
	callq	*(%rax)
	movq	_BP_RESULT_OK@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.1:
	movq	(%rbx), %rax
	movl	-32(%rbp), %esi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*8(%rax)
	movl	%eax, %ecx
	cmpq	%rcx, (%r15)
	jne	LBB0_4
## %bb.2:
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %esi
	movq	%r14, %rdi
	callq	_dal_gpio_service_create_irq
	jmp	LBB0_6
LBB0_4:
	movq	_BP_RESULT_NORECORD@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_ASSERT
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BP_RESULT_OK,8,3               ## @BP_RESULT_OK
	.comm	_BP_RESULT_NORECORD,4,2         ## @BP_RESULT_NORECORD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_hpd_gpio                   ; -- Begin function get_hpd_gpio
	.p2align	2
_get_hpd_gpio:                          ; @get_hpd_gpio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	and	x1, x1, #0xffffffff
	add	x2, sp, #8
	blr	x8
Lloh0:
	adrp	x21, _BP_RESULT_OK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BP_RESULT_OK@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	w1, [sp, #8]
	mov	x2, sp
	mov	x0, x20
	blr	x8
	ldr	x8, [x21]
	cmp	x8, w0, uxtw
	b.ne	LBB0_3
; %bb.2:
	ldp	w2, w1, [sp]
	mov	x0, x19
	bl	_dal_gpio_service_create_irq
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _BP_RESULT_NORECORD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BP_RESULT_NORECORD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, eq
	bl	_ASSERT
LBB0_4:
	mov	x0, #0
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BP_RESULT_OK,8,3               ; @BP_RESULT_OK
	.comm	_BP_RESULT_NORECORD,4,2         ; @BP_RESULT_NORECORD
.subsections_via_symbols
