	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibsd_mod_allchnls
_ibsd_mod_allchnls:                     ## @ibsd_mod_allchnls
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	_EPB_GLOBAL_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%esi, %edx
	je	LBB0_8
## %bb.1:
	movq	_EPB_IB_QUAD0_CS_SHF@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %ebx
	movq	_EPB_ADDR_SHF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addl	$4, %ecx
	movl	%ebx, %r14d
	sarl	%cl, %r14d
	cmpl	$255, %r15d
	je	LBB0_5
## %bb.2:
	movq	_IB_7220_SERDES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%edx
	andl	%ebx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_qib_sd7220_reg_mod
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	xorl	%r13d, %r12d
	andl	%r15d, %r12d
	xorl	%r13d, %r12d
	movq	_EPB_ADDR_SHF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addl	$4, %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_5:
	movl	$7, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	notl	%eax
	andl	%eax, %ebx
	movq	_IB_7220_SERDES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	movl	$255, %r8d
	movq	%rdi, %r14
	callq	_qib_sd7220_reg_mod
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_17
## %bb.6:
	movq	_EPB_ADDR_SHF@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movl	%ebx, %edx
	andl	$15, %edx
	shrl	$9, %ebx
	andl	$63, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	jmp	LBB0_7
LBB0_8:
	movq	_EPB_ADDR_SHF@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	addb	$4, %cl
	movl	$7, %r14d
	shll	%cl, %r14d
	notl	%r14d
	andl	%ebx, %r14d
	movq	_EPB_IB_QUAD0_CS_SHF@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %r14d
	movq	_IB_7220_SERDES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	movq	%rdi, %rbx
	callq	_qib_sd7220_reg_mod
	testl	%eax, %eax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	js	LBB0_9
## %bb.12:
	movq	_EPB_ADDR_SHF@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	addb	$4, %al
	movl	%r14d, %edx
	btsl	%eax, %edx
	movq	_IB_7220_SERDES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	callq	_qib_sd7220_reg_mod
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	movq	_EPB_ADDR_SHF@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	addb	$4, %cl
	movl	$2, %edx
	shll	%cl, %edx
	orl	%r14d, %edx
	movq	_IB_7220_SERDES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	callq	_qib_sd7220_reg_mod
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	movq	_EPB_ADDR_SHF@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	addb	$4, %cl
	movl	$3, %edx
	shll	%cl, %edx
	orl	%r14d, %edx
	movq	_IB_7220_SERDES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	callq	_qib_sd7220_reg_mod
	movl	$3, %r8d
	movl	%eax, %r13d
	testl	%eax, %eax
	movq	_EPB_ADDR_SHF@GOTPCREL(%rip), %rax
	jns	LBB0_17
	jmp	LBB0_11
LBB0_9:
	movl	%eax, %r13d
	xorl	%r8d, %r8d
	jmp	LBB0_10
LBB0_3:
	movq	_EPB_ADDR_SHF@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	andl	$7, %r14d
	movl	%ebx, %edx
	andl	$15, %edx
	shrl	$9, %ebx
	andl	$63, %ebx
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %ecx
	movl	%r14d, %r8d
LBB0_7:
	xorl	%eax, %eax
	callq	_qib_dev_err
	jmp	LBB0_17
LBB0_13:
	movl	%eax, %r13d
	movl	$1, %r8d
LBB0_10:
	movq	_EPB_ADDR_SHF@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_15:
	movl	%eax, %r13d
	movq	_EPB_ADDR_SHF@GOTPCREL(%rip), %rax
	movl	$2, %r8d
LBB0_11:
	movb	(%rax), %cl
	sarl	%cl, %r14d
	movl	%r14d, %edx
	andl	$15, %edx
	shrl	$9, %r14d
	andl	$63, %r14d
	movzbl	%r12b, %r9d
	movzbl	%r15b, %eax
	movl	%eax, (%rsp)
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_qib_dev_err
LBB0_17:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPB_GLOBAL_WR,4,2              ## @EPB_GLOBAL_WR
	.comm	_EPB_IB_QUAD0_CS_SHF,4,2        ## @EPB_IB_QUAD0_CS_SHF
	.comm	_EPB_ADDR_SHF,4,2               ## @EPB_ADDR_SHF
	.comm	_IB_7220_SERDES,4,2             ## @IB_7220_SERDES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pre-read failed: elt %d, addr 0x%X, chnl %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Global WR failed: elt %d, addr 0x%X, val %02X\n"

L_.str.2:                               ## @.str.2
	.asciz	"Write failed: elt %d, addr 0x%X, chnl %d, val 0x%02X, mask 0x%02X\n"

	.no_dead_strip	_ibsd_mod_allchnls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibsd_mod_allchnls
_ibsd_mod_allchnls:                     ; @ibsd_mod_allchnls
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _EPB_GLOBAL_WR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPB_GLOBAL_WR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_6
; %bb.1:
Lloh3:
	adrp	x9, _EPB_IB_QUAD0_CS_SHF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EPB_IB_QUAD0_CS_SHF@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w9, w10, w9
Lloh6:
	adrp	x23, _EPB_ADDR_SHF@GOTPAGE
Lloh7:
	ldr	x23, [x23, _EPB_ADDR_SHF@GOTPAGEOFF]
	orr	w24, w9, w1
	ldr	w9, [x23]
	add	w26, w9, #4
Lloh8:
	adrp	x25, _IB_7220_SERDES@GOTPAGE
Lloh9:
	ldr	x25, [x25, _IB_7220_SERDES@GOTPAGEOFF]
	cmp	w21, #255
	b.eq	LBB0_4
; %bb.2:
	ldr	w1, [x25]
	bic	w2, w24, w8
	mov	x0, x19
	mov	w3, #0
	mov	w4, #0
	bl	_qib_sd7220_reg_mod
	mov	x22, x0
	tbnz	w0, #31, LBB0_13
; %bb.3:
	bic	w8, w22, w21
	and	w9, w21, w20
	orr	w20, w8, w9
	ldr	w8, [x23]
	add	w26, w8, #4
LBB0_4:
	mov	w8, #7
	lsl	w8, w8, w26
	bic	w21, w24, w8
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	mov	w4, #255
	bl	_qib_sd7220_reg_mod
	mov	x22, x0
	tbz	w0, #31, LBB0_15
; %bb.5:
	ldr	w8, [x23]
	asr	w8, w21, w8
	and	w2, w8, #0xf
	ubfx	w3, w8, #9, #6
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	b	LBB0_14
LBB0_6:
Lloh12:
	adrp	x25, _EPB_ADDR_SHF@GOTPAGE
Lloh13:
	ldr	x25, [x25, _EPB_ADDR_SHF@GOTPAGEOFF]
	ldr	w8, [x25]
	add	w8, w8, #4
	mov	w9, #7
	lsl	w8, w9, w8
	bic	w8, w1, w8
Lloh14:
	adrp	x9, _EPB_IB_QUAD0_CS_SHF@GOTPAGE
Lloh15:
	ldr	x9, [x9, _EPB_IB_QUAD0_CS_SHF@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	mov	w23, #1
	lsl	w9, w23, w9
	orr	w24, w8, w9
Lloh17:
	adrp	x26, _IB_7220_SERDES@GOTPAGE
Lloh18:
	ldr	x26, [x26, _IB_7220_SERDES@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x24
	mov	x3, x20
	mov	x4, x21
	bl	_qib_sd7220_reg_mod
	tbnz	w0, #31, LBB0_10
; %bb.7:
	ldr	w8, [x25]
	add	w8, w8, #4
	lsl	w8, w23, w8
	orr	w2, w8, w24
	ldr	w1, [x26]
	mov	x0, x19
	mov	x3, x20
	mov	x4, x21
	bl	_qib_sd7220_reg_mod
	tbnz	w0, #31, LBB0_11
; %bb.8:
	ldr	w8, [x25]
	add	w8, w8, #4
	mov	w23, #2
	lsl	w8, w23, w8
	orr	w2, w8, w24
	ldr	w1, [x26]
	mov	x0, x19
	mov	x3, x20
	mov	x4, x21
	bl	_qib_sd7220_reg_mod
	tbnz	w0, #31, LBB0_11
; %bb.9:
	ldr	w8, [x25]
	add	w8, w8, #4
	mov	w23, #3
	lsl	w8, w23, w8
	orr	w2, w8, w24
	ldr	w1, [x26]
	mov	x0, x19
	mov	x3, x20
	mov	x4, x21
	bl	_qib_sd7220_reg_mod
	mov	x22, x0
	tbz	w0, #31, LBB0_15
	b	LBB0_12
LBB0_10:
	mov	x22, x0
	mov	w23, #0
	b	LBB0_12
LBB0_11:
	mov	x22, x0
LBB0_12:
	ldr	w8, [x25]
	asr	w8, w24, w8
	and	w2, w8, #0xf
	ubfx	w3, w8, #9, #6
	and	w8, w20, #0xff
	and	w9, w21, #0xff
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	stp	x8, x9, [sp]
	mov	x0, x19
	mov	x4, x23
	b	LBB0_14
LBB0_13:
	asr	w8, w24, w26
	and	w4, w8, #0x7
	ldr	w8, [x23]
	asr	w8, w24, w8
	and	w2, w8, #0xf
	ubfx	w3, w8, #9, #6
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
LBB0_14:
	bl	_qib_dev_err
LBB0_15:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EPB_GLOBAL_WR,4,2              ; @EPB_GLOBAL_WR
	.comm	_EPB_IB_QUAD0_CS_SHF,4,2        ; @EPB_IB_QUAD0_CS_SHF
	.comm	_EPB_ADDR_SHF,4,2               ; @EPB_ADDR_SHF
	.comm	_IB_7220_SERDES,4,2             ; @IB_7220_SERDES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pre-read failed: elt %d, addr 0x%X, chnl %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Global WR failed: elt %d, addr 0x%X, val %02X\n"

l_.str.2:                               ; @.str.2
	.asciz	"Write failed: elt %d, addr 0x%X, chnl %d, val 0x%02X, mask 0x%02X\n"

	.no_dead_strip	_ibsd_mod_allchnls
.subsections_via_symbols
