	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwdp_start                     ## -- Begin function iwdp_start
	.p2align	4, 0x90
_iwdp_start:                            ## @iwdp_start
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_iwdp_listen
	xorl	%eax, %eax
	callq	_iwdp_idl_new
	movq	%rax, %r14
	movq	%rbx, 16(%rax)
	movq	%rbx, %rdi
	callq	*(%rbx)
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	callq	*16(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	8(%rbx), %rax
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	8(%rbx), %rax
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_7:
	movq	8(%r14), %r14
	movq	%r14, %rdi
	callq	*8(%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	8(%rbx), %rax
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
LBB0_9:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	$-1, %edx
	callq	*(%r14)
	movq	_IWDP_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Already started?"

L_.str.1:                               ## @.str.1
	.asciz	"No device found, is it plugged in?"

L_.str.2:                               ## @.str.2
	.asciz	"add_fd failed"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to start device_listener"

L_.str.4:                               ## @.str.4
	.asciz	"SIMULATOR"

	.comm	_IWDP_SUCCESS,4,2               ## @IWDP_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwdp_start                     ; -- Begin function iwdp_start
	.p2align	2
_iwdp_start:                            ; @iwdp_start
	.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
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x2, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x2
LBB0_3:
	mov	x0, x19
	mov	x1, #0
	bl	_iwdp_listen
	bl	_iwdp_idl_new
	mov	x20, x0
	str	x19, [x0, #16]
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	x1, x0
	str	w0, [x20]
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	x2, #0
	mov	x3, x20
	mov	w4, #0
	blr	x8
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x2, [x19, #8]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_6:
	ldr	x2, [x19, #8]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_7:
	ldr	x20, [x20, #8]
	ldr	x8, [x20, #8]
	mov	x0, x20
	blr	x8
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x2, [x19, #8]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_2
LBB0_9:
	ldr	x8, [x20]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	w2, #-1
	blr	x8
Lloh10:
	adrp	x8, _IWDP_SUCCESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IWDP_SUCCESS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Already started?"

l_.str.1:                               ; @.str.1
	.asciz	"No device found, is it plugged in?"

l_.str.2:                               ; @.str.2
	.asciz	"add_fd failed"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to start device_listener"

l_.str.4:                               ; @.str.4
	.asciz	"SIMULATOR"

	.comm	_IWDP_SUCCESS,4,2               ; @IWDP_SUCCESS
.subsections_via_symbols
