	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function bcm_bsc_fill_tx_fifo
LCPI0_0:
	.space	16,255
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_bcm_bsc_fill_tx_fifo:                  ## @bcm_bsc_fill_tx_fifo
	.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
	movq	%rdi, %rbx
	movq	8(%rdi), %rcx
	movq	_BCM_BSC_DATA@GOTPCREL(%rip), %r15
	leaq	L_.str(%rip), %r14
	movq	_BCM_BSC_STATUS@GOTPCREL(%rip), %r12
	movq	_BCM_BSC_STATUS_TXD@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	40(%rbx), %rax
	movq	16(%rax), %rcx
	movq	%rcx, 48(%rbx)
	movq	(%rax), %rcx
	movq	%rcx, 16(%rbx)
	movq	%rcx, 8(%rbx)
	addq	$24, %rax
	movq	%rax, 40(%rbx)
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15), %esi
	movq	48(%rbx), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_BCM_BSC_WRITE
	movq	48(%rbx), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_DEBUGF
	addq	$4, 48(%rbx)
	movdqu	(%rbx), %xmm0
	paddq	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, (%rbx)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_BCM_BSC_READ
	movq	8(%rbx), %rcx
	andl	(%r13), %eax
	testq	%rcx, %rcx
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	testl	%eax, %eax
	jne	LBB0_3
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%rbx), %rdx
	testq	%rdx, %rdx
	jle	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	testq	%rcx, %rcx
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	subq	16(%rbx), %rdx
	movq	%rdx, 24(%rbx)
	je	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, (%rbx)
	jle	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, %eax
	jne	LBB0_1
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_DEBUGF
	movq	40(%rbx), %rax
	movl	8(%rax), %ecx
	orl	$1, %ecx
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	movl	$2, %esi
	xorl	%eax, %eax
	callq	_DEVICE_DEBUGF
	movq	(%rbx), %r8
	movq	40(%rbx), %rax
	movl	8(%rax), %ecx
	orl	$1, %ecx
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_DEVICE_DEBUGF
	movq	_BCM_I2C_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%rbx)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM_BSC_DATA,4,2               ## @BCM_BSC_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x%02x "

	.comm	_BCM_BSC_STATUS,4,2             ## @BCM_BSC_STATUS
	.comm	_BCM_BSC_STATUS_TXD,4,2         ## @BCM_BSC_STATUS_TXD
L_.str.1:                               ## @.str.1
	.asciz	" err=0\n"

L_.str.2:                               ## @.str.2
	.asciz	"rstart 0x%02x\n"

L_.str.3:                               ## @.str.3
	.asciz	"read   0x%02x len %d: "

	.comm	_BCM_I2C_READ,4,2               ## @BCM_I2C_READ
	.no_dead_strip	_bcm_bsc_fill_tx_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_bsc_fill_tx_fifo
_bcm_bsc_fill_tx_fifo:                  ; @bcm_bsc_fill_tx_fifo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
Lloh0:
	adrp	x21, _BCM_BSC_DATA@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BCM_BSC_DATA@GOTPAGEOFF]
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
	ldr	x8, [x0, #8]
Lloh4:
	adrp	x22, _BCM_BSC_STATUS@GOTPAGE
Lloh5:
	ldr	x22, [x22, _BCM_BSC_STATUS@GOTPAGEOFF]
Lloh6:
	adrp	x23, _BCM_BSC_STATUS_TXD@GOTPAGE
Lloh7:
	ldr	x23, [x23, _BCM_BSC_STATUS_TXD@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	cbnz	x8, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #40]
	ldr	x9, [x8, #16]
	ldr	x10, [x8], #24
	stp	x10, x10, [x19, #8]
	stp	x8, x9, [x19, #40]
LBB0_3:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x21]
	ldr	x8, [x19, #48]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_BCM_BSC_WRITE
	ldr	x8, [x19, #48]
	ldr	w8, [x8]
	str	x8, [sp]
	mov	x0, x19
	mov	w1, #1
	mov	x2, x20
	bl	_DEBUGF
	ldr	x8, [x19, #48]
	add	x8, x8, #4
	str	x8, [x19, #48]
	ldr	q0, [x19]
	movi.2d	v1, #0xffffffffffffffff
	add.2d	v0, v0, v1
	str	q0, [x19]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_BCM_BSC_READ
	ldr	x8, [x19, #8]
	ldr	w9, [x23]
	and	w9, w9, w0
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	cbnz	w9, LBB0_3
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x10, [x19, #24]
	cmp	x10, #1
	b.lt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	cbnz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x11, [x19, #16]
	subs	x10, x10, x11
	str	x10, [x19, #24]
	b.eq	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x10, [x19]
	cmp	x10, #1
	b.lt	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	cbnz	w9, LBB0_1
	b	LBB0_11
LBB0_10:
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_DEBUGF
	ldr	x8, [x19, #40]
	ldr	w8, [x8, #8]
	orr	w3, w8, #0x1
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w1, #2
	bl	_DEVICE_DEBUGF
	ldr	x8, [x19, #40]
	ldr	w8, [x8, #8]
	orr	w3, w8, #0x1
	ldr	x8, [x19]
	str	x8, [sp]
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_DEVICE_DEBUGF
Lloh14:
	adrp	x8, _BCM_I2C_READ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BCM_I2C_READ@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM_BSC_DATA,4,2               ; @BCM_BSC_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x%02x "

	.comm	_BCM_BSC_STATUS,4,2             ; @BCM_BSC_STATUS
	.comm	_BCM_BSC_STATUS_TXD,4,2         ; @BCM_BSC_STATUS_TXD
l_.str.1:                               ; @.str.1
	.asciz	" err=0\n"

l_.str.2:                               ; @.str.2
	.asciz	"rstart 0x%02x\n"

l_.str.3:                               ; @.str.3
	.asciz	"read   0x%02x len %d: "

	.comm	_BCM_I2C_READ,4,2               ; @BCM_I2C_READ
	.no_dead_strip	_bcm_bsc_fill_tx_fifo
.subsections_via_symbols
