	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chk_dev
_chk_dev:                               ## @chk_dev
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_dtab@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	movq	_D_TAB_SZ@GOTPCREL(%rip), %rdi
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	(%rdi)
	movl	%edx, %r14d
	movq	(%rcx,%r14,8), %rax
	testq	%rax, %rax
	je	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rax)
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_2
LBB0_4:
	testl	%esi, %esi
	je	LBB0_10
## %bb.5:
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rbx, (%rax)
	movq	$0, 16(%rax)
	movq	(%r15), %rcx
	movq	(%rcx,%r14,8), %rdx
	movq	%rdx, 8(%rax)
	movq	%rax, (%rcx,%r14,8)
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_paxwarn
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dtab,8,3                       ## @dtab
	.comm	_D_TAB_SZ,4,2                   ## @D_TAB_SZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device map table out of memory"

	.no_dead_strip	_chk_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chk_dev
_chk_dev:                               ; @chk_dev
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x20, _dtab@GOTPAGE
Lloh1:
	ldr	x20, [x20, _dtab@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x9, _D_TAB_SZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _D_TAB_SZ@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	udiv	w10, w19, w9
	msub	w21, w10, w9, w19
	ldr	x0, [x8, w21, uxtw #3]
	cbz	x0, LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0]
	cmp	x8, x19
	b.eq	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x0, #8]
	cbnz	x0, LBB0_2
LBB0_4:
	cbz	w1, LBB0_8
; %bb.5:
	mov	w0, #24
	bl	_malloc
	cbz	x0, LBB0_7
; %bb.6:
	str	xzr, [x0, #16]
	ldr	x8, [x20]
	lsl	x9, x21, #3
	ldr	x10, [x8, x9]
	stp	x19, x10, [x0]
	str	x0, [x8, x9]
	b	LBB0_9
LBB0_7:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_paxwarn
LBB0_8:
	mov	x0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_dtab,8,3                       ; @dtab
	.comm	_D_TAB_SZ,4,2                   ; @D_TAB_SZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device map table out of memory"

	.no_dead_strip	_chk_dev
.subsections_via_symbols
