	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function translate_subdevice_to_hwport
_translate_subdevice_to_hwport:         ## @translate_subdevice_to_hwport
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	js	LBB0_4
## %bb.1:
	movl	(%rdi), %ecx
	cmpl	%esi, %ecx
	jle	LBB0_5
## %bb.2:
	incl	%esi
	jmp	LBB0_3
LBB0_4:
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_5:
	leal	(%rcx,%rcx), %edx
	cmpl	%esi, %edx
	jle	LBB0_7
## %bb.6:
	subl	%ecx, %esi
	addl	$9, %esi
LBB0_3:
	movl	%esi, %eax
	popq	%rbp
	retq
LBB0_7:
	movq	_MTPAV_PIDX_COMPUTER@GOTPCREL(%rip), %rax
	addl	(%rax), %edx
	movl	$17, %eax
	cmpl	%esi, %edx
	je	LBB0_9
## %bb.8:
	movq	_MTPAV_PIDX_ADAT@GOTPCREL(%rip), %rax
	addl	(%rax), %ecx
	xorl	%edx, %edx
	cmpl	%esi, %ecx
	movl	$99, %eax
	cmovnel	%edx, %eax
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTPAV_PIDX_COMPUTER,4,2        ## @MTPAV_PIDX_COMPUTER
	.comm	_MTPAV_PIDX_ADAT,4,2            ## @MTPAV_PIDX_ADAT
	.no_dead_strip	_translate_subdevice_to_hwport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function translate_subdevice_to_hwport
_translate_subdevice_to_hwport:         ; @translate_subdevice_to_hwport
	.cfi_startproc
; %bb.0:
	tbnz	w1, #31, LBB0_3
; %bb.1:
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_4
; %bb.2:
	add	w0, w1, #1
	ret
LBB0_3:
	mov	w0, #1
	ret
LBB0_4:
	lsl	w9, w8, #1
	cmp	w9, w1
	b.le	LBB0_6
; %bb.5:
	sub	w8, w1, w8
	add	w0, w8, #9
	ret
LBB0_6:
Lloh0:
	adrp	x10, _MTPAV_PIDX_COMPUTER@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MTPAV_PIDX_COMPUTER@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	add	w9, w10, w9
	cmp	w9, w1
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #17
	ret
LBB0_8:
Lloh3:
	adrp	x9, _MTPAV_PIDX_ADAT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MTPAV_PIDX_ADAT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w8, w9, w8
	cmp	w8, w1
	mov	w8, #99
	csel	w0, w8, wzr, eq
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MTPAV_PIDX_COMPUTER,4,2        ; @MTPAV_PIDX_COMPUTER
	.comm	_MTPAV_PIDX_ADAT,4,2            ; @MTPAV_PIDX_ADAT
	.no_dead_strip	_translate_subdevice_to_hwport
.subsections_via_symbols
