	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwdpm_select_port              ## -- Begin function iwdpm_select_port
	.p2align	4, 0x90
_iwdpm_select_port:                     ## @iwdpm_select_port
	.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
	movq	%rdx, %r12
	movq	%rsi, %r13
	movslq	(%rdi), %r15
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
LBB0_3:
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_pc_select_port
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jne	LBB0_6
LBB0_7:
	movq	_IWDP_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	xorl	%eax, %eax
	callq	_pc_new
	movq	%rax, %rbx
	movq	%rax, (%r15)
	movl	8(%r15), %r14d
	movl	%r14d, %edi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_pc_add_line
	movq	(%r15), %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	callq	_pc_clear
	movq	(%r15), %rdi
	movl	8(%r15), %esi
	callq	_pc_add_file
	movq	(%r15), %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_pc_select_port
	movl	%eax, %ebx
	movq	(%r15), %rdi
	callq	_pc_free
	movq	$0, (%r15)
	testl	%ebx, %ebx
	je	LBB0_7
LBB0_6:
	movq	_IWDP_ERROR@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_IWDP_ERROR,4,2                 ## @IWDP_ERROR
	.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	_iwdpm_select_port              ; -- Begin function iwdpm_select_port
	.p2align	2
_iwdpm_select_port:                     ; @iwdpm_select_port
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	ldrsw	x25, [x0]
	ldr	x0, [x25]
	cbz	x0, LBB0_2
LBB0_1:
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_pc_select_port
	mov	x19, x0
	b	LBB0_4
LBB0_2:
	bl	_pc_new
	mov	x23, x0
	str	x0, [x25]
	ldr	w24, [x25, #8]
	mov	x0, x24
	bl	_strlen
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_pc_add_line
	mov	x8, x0
	ldr	x0, [x25]
	cbz	x8, LBB0_1
; %bb.3:
	bl	_pc_clear
	ldr	x0, [x25]
	ldr	w1, [x25, #8]
	bl	_pc_add_file
	ldr	x0, [x25]
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_pc_select_port
	mov	x19, x0
	ldr	x0, [x25]
	bl	_pc_free
	str	xzr, [x25]
LBB0_4:
Lloh0:
	adrp	x8, _IWDP_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWDP_ERROR@GOTPAGEOFF]
Lloh2:
	adrp	x9, _IWDP_SUCCESS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IWDP_SUCCESS@GOTPAGEOFF]
	cmp	w19, #0
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IWDP_ERROR,4,2                 ; @IWDP_ERROR
	.comm	_IWDP_SUCCESS,4,2               ; @IWDP_SUCCESS
.subsections_via_symbols
