	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_string_representation_bind_device
_get_string_representation_bind_device: ## @get_string_representation_bind_device
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_input_config_get_device_count
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_config_get_ptr
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.1:
	movl	(%rbx), %ecx
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %ebx
	cmpl	%r12d, %ebx
	jae	LBB0_10
## %bb.2:
	movl	%ebx, %edi
	callq	_input_config_get_device_display_name
	movl	%ebx, %edi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_input_config_get_device_display_name
	jmp	LBB0_5
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_MENU_ENUM_LABEL_VALUE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movq	%r15, %rdi
	movq	%rax, %rsi
LBB0_8:
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strlcpy                        ## TAILCALL
LBB0_4:
	callq	_input_config_get_device_name
LBB0_5:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	je	LBB0_6
## %bb.9:
	movq	_MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movq	%rax, %r12
	movq	_MENU_ENUM_LABEL_VALUE_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rcx
	movq	%rax, %r8
	movl	%ebx, %r9d
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snprintf                       ## TAILCALL
LBB0_6:
	movl	%ebx, %edi
	callq	_input_autoconfigure_get_device_name_index
	testl	%eax, %eax
	je	LBB0_7
## %bb.12:
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snprintf                       ## TAILCALL
LBB0_7:
	movq	%r15, %rdi
	movq	%r12, %rsi
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s (#%u)"

L_.str.1:                               ## @.str.1
	.asciz	"%s (%s #%u)"

	.comm	_MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE,4,2 ## @MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE
	.comm	_MENU_ENUM_LABEL_VALUE_PORT,4,2 ## @MENU_ENUM_LABEL_VALUE_PORT
	.comm	_MENU_ENUM_LABEL_VALUE_DISABLED,4,2 ## @MENU_ENUM_LABEL_VALUE_DISABLED
	.no_dead_strip	_get_string_representation_bind_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_string_representation_bind_device
_get_string_representation_bind_device: ; @get_string_representation_bind_device
	.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, x1
	mov	x21, x0
	bl	_input_config_get_device_count
	mov	x22, x0
	bl	_config_get_ptr
	cbz	x21, LBB0_12
; %bb.1:
	ldr	w8, [x21]
	ldr	x9, [x0]
	ldr	w21, [x9, x8, lsl #2]
	cmp	w21, w22
	b.hs	LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_input_config_get_device_display_name
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x21
	bl	_input_config_get_device_display_name
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _MENU_ENUM_LABEL_VALUE_DISABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MENU_ENUM_LABEL_VALUE_DISABLED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	mov	x0, x20
LBB0_5:
	mov	x2, x19
	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
	b	_strlcpy
LBB0_6:
	mov	x0, x21
	bl	_input_config_get_device_name
LBB0_7:
	mov	x22, x0
	bl	_string_is_empty
	cbz	w0, LBB0_9
; %bb.8:
Lloh3:
	adrp	x8, _MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x22, x0
Lloh6:
	adrp	x8, _MENU_ENUM_LABEL_VALUE_PORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MENU_ENUM_LABEL_VALUE_PORT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	stp	x0, x21, [sp]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_9:
	mov	x0, x21
	bl	_input_autoconfigure_get_device_name_index
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_13
; %bb.10:
	str	x0, [sp]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	mov	x3, x22
	bl	_snprintf
LBB0_12:
	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
LBB0_13:
	mov	x0, x20
	mov	x1, x22
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s (#%u)"

l_.str.1:                               ; @.str.1
	.asciz	"%s (%s #%u)"

	.comm	_MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE,4,2 ; @MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE
	.comm	_MENU_ENUM_LABEL_VALUE_PORT,4,2 ; @MENU_ENUM_LABEL_VALUE_PORT
	.comm	_MENU_ENUM_LABEL_VALUE_DISABLED,4,2 ; @MENU_ENUM_LABEL_VALUE_DISABLED
	.no_dead_strip	_get_string_representation_bind_device
.subsections_via_symbols
