	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hw_device_add
_hw_device_add:                         ## @hw_device_add
	.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	_nb_hw_devices@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	incl	%esi
	movq	_hw_devices@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_av_reallocp_array
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_2:
	movl	$4, %edi
	callq	_av_mallocz
	movq	(%rbx), %rdx
	movslq	(%r14), %rcx
	movq	%rax, (%rdx,%rcx,8)
	movq	(%rbx), %rax
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	incl	%ecx
LBB0_5:
	movl	%ecx, (%r14)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_hw_devices,8,3                 ## @hw_devices
	.comm	_nb_hw_devices,4,2              ## @nb_hw_devices
	.no_dead_strip	_hw_device_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hw_device_add
_hw_device_add:                         ; @hw_device_add
	.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	x20, _nb_hw_devices@GOTPAGE
Lloh1:
	ldr	x20, [x20, _nb_hw_devices@GOTPAGEOFF]
	ldr	w8, [x20]
	add	w1, w8, #1
Lloh2:
	adrp	x19, _hw_devices@GOTPAGE
Lloh3:
	ldr	x19, [x19, _hw_devices@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #8
	bl	_av_reallocp_array
	cbz	w0, LBB0_2
; %bb.1:
	mov	w8, #0
	mov	x0, #0
	b	LBB0_4
LBB0_2:
	mov	w0, #4
	bl	_av_mallocz
	ldr	x9, [x19]
	ldrsw	x8, [x20]
	lsl	x10, x8, #3
	str	x0, [x9, x10]
	ldr	x9, [x19]
	ldr	x0, [x9, x10]
	cbz	x0, LBB0_5
; %bb.3:
	add	w8, w8, #1
LBB0_4:
	str	w8, [x20]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_hw_devices,8,3                 ; @hw_devices
	.comm	_nb_hw_devices,4,2              ; @nb_hw_devices
	.no_dead_strip	_hw_device_add
.subsections_via_symbols
