	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dib9000_set_slave_frontend     ## -- Begin function dib9000_set_slave_frontend
	.p2align	4, 0x90
_dib9000_set_slave_frontend:            ## @dib9000_set_slave_frontend
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MAX_NUMBER_OF_FRONTENDS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$2, %rax
	jb	LBB0_4
## %bb.1:
	movq	%rsi, %r14
	movq	(%rdi), %r12
	movq	(%r12), %rcx
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rbx,8)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	jne	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dprintk
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_5
LBB0_6:
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_dprintk
	movq	(%r12), %rax
	movq	%r14, (%rax,%rbx,8)
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_NUMBER_OF_FRONTENDS,8,3    ## @MAX_NUMBER_OF_FRONTENDS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set slave fe %p to index %i\n"

L_.str.1:                               ## @.str.1
	.asciz	"too many slave frontend\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dib9000_set_slave_frontend     ; -- Begin function dib9000_set_slave_frontend
	.p2align	2
_dib9000_set_slave_frontend:            ; @dib9000_set_slave_frontend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x8, _MAX_NUMBER_OF_FRONTENDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_NUMBER_OF_FRONTENDS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #2
	b.lo	LBB0_4
; %bb.1:
	mov	x19, x1
	ldr	x20, [x0]
	ldr	x9, [x20]
	mov	w21, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x21, lsl #3]
	cbz	x10, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	cmp	x8, x21
	b.ne	LBB0_2
LBB0_4:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	stp	x19, x21, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	mov	w0, #0
	ldr	x8, [x20]
	str	x19, [x8, x21, lsl #3]
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_NUMBER_OF_FRONTENDS,8,3    ; @MAX_NUMBER_OF_FRONTENDS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set slave fe %p to index %i\n"

l_.str.1:                               ; @.str.1
	.asciz	"too many slave frontend\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
