	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setifbcnt
_setifbcnt:                             ## @setifbcnt
	.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
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	16(%rdi), %rdi
	movq	_NAOEIFS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movq	%rcx, %rax
	shlq	$4, %rax
	addq	%rbx, %rax
	movl	%edx, %r12d
	testq	%rcx, %rcx
	jg	LBB0_1
LBB0_6:
	testq	%r13, %r13
	je	LBB0_9
## %bb.7:
	cmpq	%rax, %rbx
	je	LBB0_10
## %bb.8:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_dev_hold
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, 8(%rbx)
	movl	%r15d, (%rbx)
LBB0_9:
	movl	%r12d, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_setdbcnt                       ## TAILCALL
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %ecx
	cmpl	%ecx, %r12d
	cmovgel	%ecx, %r12d
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	addq	$16, %rbx
	cmpq	%rax, %rbx
	jae	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r13, %rcx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, (%rbx)
	xorl	%r13d, %r13d
	jmp	LBB0_5
LBB0_10:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NAOEIFS,4,2                    ## @NAOEIFS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aoe: device setifbcnt failure; too many interfaces.\n"

	.no_dead_strip	_setifbcnt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setifbcnt
_setifbcnt:                             ; @setifbcnt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldp	x23, x20, [x0, #8]
Lloh0:
	adrp	x8, _NAOEIFS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAOEIFS@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x8]
	add	x8, x23, x9, lsl #4
	mov	x24, x2
	cmp	w9, #1
	b.ge	LBB0_7
LBB0_1:
	cbz	x22, LBB0_4
; %bb.2:
	cmp	x23, x8
	b.eq	LBB0_10
; %bb.3:
	mov	x0, x22
	bl	_dev_hold
	str	x22, [x23, #8]
	str	w21, [x23]
LBB0_4:
	str	w24, [x19]
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_setdbcnt
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x23]
	cmp	w24, w9
	csel	w24, w24, w9, lt
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #16
	cmp	x23, x8
	b.hs	LBB0_1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23, #8]
	cbz	x9, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x9, x22
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, #0
	str	w21, [x23]
	b	LBB0_6
LBB0_10:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_pr_err
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NAOEIFS,4,2                    ; @NAOEIFS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aoe: device setifbcnt failure; too many interfaces.\n"

	.no_dead_strip	_setifbcnt
.subsections_via_symbols
