	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function devclass_add_device
_devclass_add_device:                   ## @devclass_add_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_DEVCLASS_MAXUNIT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	shlq	$3, %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rbx,8)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	addq	$-8, %rax
	jne	LBB0_2
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_DPRINTF
	movl	$1, %eax
	jmp	LBB0_6
LBB0_3:
	movq	%rsi, (%rcx,%rbx,8)
	movl	%ebx, (%rsi)
	movq	%rdi, 8(%rsi)
	movl	4(%rsi), %r14d
	movq	%rsi, %rdi
	callq	_device_get_name
	leaq	L_.str(%rip), %rdx
	movl	%r14d, %edi
	movl	$4, %esi
	movq	%rax, %rcx
	movl	%ebx, %r8d
	callq	_snprintf
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEVCLASS_MAXUNIT,4,2           ## @DEVCLASS_MAXUNIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%d"

L_.str.1:                               ## @.str.1
	.asciz	"Could not add device to devclass.\n"

	.no_dead_strip	_devclass_add_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function devclass_add_device
_devclass_add_device:                   ; @devclass_add_device
	.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
Lloh0:
	adrp	x8, _DEVCLASS_MAXUNIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEVCLASS_MAXUNIT@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x8]
	cbz	w9, LBB0_4
; %bb.1:
	mov	x19, #0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	lsl	x9, x9, #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, x19, lsl #3]
	cbz	x10, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x19, x19, #1
	subs	x9, x9, #8
	b.ne	LBB0_2
LBB0_4:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINTF
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	str	x1, [x8, x19, lsl #3]
	str	w19, [x1]
	str	x0, [x1, #8]
	ldr	w20, [x1, #4]
	mov	x0, x1
	bl	_device_get_name
	mov	x3, x0
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #4
	mov	x4, x19
	bl	_snprintf
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_DEVCLASS_MAXUNIT,4,2           ; @DEVCLASS_MAXUNIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%d"

l_.str.1:                               ; @.str.1
	.asciz	"Could not add device to devclass.\n"

	.no_dead_strip	_devclass_add_device
.subsections_via_symbols
