	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kbdint_next_device
_kbdint_next_device:                    ## @kbdint_next_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, 16(%rsi)
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_kbdint_reset_device
LBB0_2:
	movq	(%r13), %r15
	movq	_devices@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	testq	%r15, %r15
	je	LBB0_18
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcspn
	testq	%rax, %rax
	je	LBB0_18
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r12
	movq	(%r14), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	(%r14), %rax
	movq	8(%rax,%rbx,8), %rax
	incq	%rbx
	testq	%rax, %rax
	je	LBB0_12
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	8(%r13), %edx
	movl	$1, %r15d
	movl	%ebx, %ecx
	shll	%cl, %r15d
	btl	%ebx, %edx
	jb	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	callq	_auth2_method_allowed
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	(%r13), %rdi
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movq	%rax, 16(%r13)
	orl	%r15d, 8(%r13)
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %r15
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$0, (%r15,%r12)
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	addq	%r15, %r12
	incq	%r12
	movq	%r12, %rdi
	callq	_xstrdup
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, (%r13)
	movq	%r15, %rdi
	callq	_free
	movq	(%r13), %rsi
	testq	%rsi, %rsi
	leaq	L_.str.3(%rip), %rax
	cmoveq	%rax, %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_debug2
	movq	(%r13), %r15
	testq	%r15, %r15
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 16(%r13)
	je	LBB0_3
LBB0_18:
	xorl	%eax, %eax
	cmpq	$0, 16(%r13)
	setne	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	","

	.comm	_devices,8,3                    ## @devices
L_.str.1:                               ## @.str.1
	.asciz	"keyboard-interactive"

L_.str.2:                               ## @.str.2
	.asciz	"kbdint_next_device: devices %s"

L_.str.3:                               ## @.str.3
	.asciz	"<empty>"

	.no_dead_strip	_kbdint_next_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kbdint_next_device
_kbdint_next_device:                    ; @kbdint_next_device
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_kbdint_reset_device
LBB0_2:
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
Lloh2:
	adrp	x26, _devices@GOTPAGE
Lloh3:
	ldr	x26, [x26, _devices@GOTPAGEOFF]
	ldr	x25, [x19]
Lloh4:
	adrp	x22, l_.str.2@PAGE
Lloh5:
	add	x22, x22, l_.str.2@PAGEOFF
	mov	w28, #1
Lloh6:
	adrp	x23, l_.str.1@PAGE
Lloh7:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cbz	x25, LBB0_18
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	mov	x1, x21
	bl	_strcspn
	cbz	x0, LBB0_18
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	ldr	x8, [x26]
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x26]
	add	x8, x8, x25, lsl #3
	add	x25, x25, #1
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_12
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x19, #8]
	lsl	w27, w28, w25
	tst	w9, w27
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x23
	bl	_auth2_method_allowed
	cbz	w0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x0, [x19]
	ldr	x8, [x26]
	ldr	x8, [x8, x25, lsl #3]
	ldr	w1, [x8]
	mov	x2, x24
	bl	_strncmp
	cbnz	x0, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x26]
	ldr	x8, [x8, x25, lsl #3]
	str	x8, [x19, #16]
	ldr	w8, [x19, #8]
	orr	w8, w8, w27
	str	w8, [x19, #8]
	b	LBB0_7
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x25, [x19]
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x25, x24
	ldrb	w9, [x8]
	cbz	w9, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x8, #1
	bl	_xstrdup
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, #0
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x0, [x19]
	mov	x0, x25
	bl	_free
	ldr	x8, [x19]
	cmp	x8, #0
Lloh8:
	adrp	x9, l_.str.3@PAGE
Lloh9:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x1, x9, x8, eq
	mov	x0, x22
	bl	_debug2
	ldr	x25, [x19]
	cbz	x25, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
LBB0_18:
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, ne
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	","

	.comm	_devices,8,3                    ; @devices
l_.str.1:                               ; @.str.1
	.asciz	"keyboard-interactive"

l_.str.2:                               ; @.str.2
	.asciz	"kbdint_next_device: devices %s"

l_.str.3:                               ; @.str.3
	.asciz	"<empty>"

	.no_dead_strip	_kbdint_next_device
.subsections_via_symbols
