	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_bsc_intr
_bcm_bsc_intr:                          ## @bcm_bsc_intr
	.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	%rdi, %rbx
	callq	_BCM_BSC_LOCK
	movq	_BCM_I2C_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_12
## %bb.1:
	movq	_BCM_BSC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_BCM_BSC_READ
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	%eax, %ecx
	callq	_DEBUGF
	movq	_BCM_I2C_READ@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.2:
	movq	_BCM_BSC_STATUS_RXD@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_bcm_bsc_empty_rx_fifo
LBB0_4:
	movq	_BCM_BSC_STATUS_ERRBITS@GOTPCREL(%rip), %rax
	movq	_BCM_BSC_STATUS_DONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r14d, %ecx
	je	LBB0_8
## %bb.5:
	movq	_BCM_I2C_DONE@GOTPCREL(%rip), %rdx
	movl	(%rbx), %ecx
	orl	(%rdx), %ecx
	movl	%ecx, (%rbx)
	testl	%r14d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_BCM_I2C_ERROR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
LBB0_7:
	movq	%rbx, %rdi
	callq	_bcm_bsc_reset
	movq	%rbx, %rdi
	callq	_wakeup
	jmp	LBB0_12
LBB0_8:
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	jne	LBB0_12
## %bb.9:
	movq	_BCM_BSC_STATUS_TXD@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_12
## %bb.10:
	cmpq	$0, 8(%rbx)
	jle	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_bcm_bsc_fill_tx_fifo
LBB0_12:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BCM_BSC_UNLOCK                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM_I2C_BUSY,4,2               ## @BCM_I2C_BUSY
	.comm	_BCM_BSC_STATUS,4,2             ## @BCM_BSC_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" <intrstatus=0x%08x> "

	.comm	_BCM_I2C_READ,4,2               ## @BCM_I2C_READ
	.comm	_BCM_BSC_STATUS_RXD,4,2         ## @BCM_BSC_STATUS_RXD
	.comm	_BCM_BSC_STATUS_ERRBITS,4,2     ## @BCM_BSC_STATUS_ERRBITS
	.comm	_BCM_BSC_STATUS_DONE,4,2        ## @BCM_BSC_STATUS_DONE
	.comm	_BCM_I2C_DONE,4,2               ## @BCM_I2C_DONE
	.comm	_BCM_I2C_ERROR,4,2              ## @BCM_I2C_ERROR
	.comm	_BCM_BSC_STATUS_TXD,4,2         ## @BCM_BSC_STATUS_TXD
	.no_dead_strip	_bcm_bsc_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_bsc_intr
_bcm_bsc_intr:                          ; @bcm_bsc_intr
	.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
	mov	x19, x0
	bl	_BCM_BSC_LOCK
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _BCM_I2C_BUSY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BCM_I2C_BUSY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.1:
Lloh3:
	adrp	x8, _BCM_BSC_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BCM_BSC_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BCM_BSC_READ
	mov	x20, x0
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #4
	mov	x3, x20
	bl	_DEBUGF
	ldr	w8, [x19]
Lloh8:
	adrp	x21, _BCM_I2C_READ@GOTPAGE
Lloh9:
	ldr	x21, [x21, _BCM_I2C_READ@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh10:
	adrp	x8, _BCM_BSC_STATUS_RXD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BCM_BSC_STATUS_RXD@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_bcm_bsc_empty_rx_fifo
LBB0_4:
Lloh13:
	adrp	x8, _BCM_BSC_STATUS_ERRBITS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BCM_BSC_STATUS_ERRBITS@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh15:
	adrp	x10, _BCM_BSC_STATUS_DONE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _BCM_BSC_STATUS_DONE@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w20
	b.eq	LBB0_8
; %bb.5:
Lloh18:
	adrp	x9, _BCM_I2C_DONE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BCM_I2C_DONE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
Lloh21:
	adrp	x8, _BCM_I2C_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BCM_I2C_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_7:
	mov	x0, x19
	bl	_bcm_bsc_reset
	mov	x0, x19
	bl	_wakeup
	b	LBB0_12
LBB0_8:
	ldr	w8, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.9:
Lloh24:
	adrp	x8, _BCM_BSC_STATUS_TXD@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BCM_BSC_STATUS_TXD@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_12
; %bb.10:
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_bcm_bsc_fill_tx_fifo
LBB0_12:
	mov	x0, x19
	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
	b	_BCM_BSC_UNLOCK
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM_I2C_BUSY,4,2               ; @BCM_I2C_BUSY
	.comm	_BCM_BSC_STATUS,4,2             ; @BCM_BSC_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" <intrstatus=0x%08x> "

	.comm	_BCM_I2C_READ,4,2               ; @BCM_I2C_READ
	.comm	_BCM_BSC_STATUS_RXD,4,2         ; @BCM_BSC_STATUS_RXD
	.comm	_BCM_BSC_STATUS_ERRBITS,4,2     ; @BCM_BSC_STATUS_ERRBITS
	.comm	_BCM_BSC_STATUS_DONE,4,2        ; @BCM_BSC_STATUS_DONE
	.comm	_BCM_I2C_DONE,4,2               ; @BCM_I2C_DONE
	.comm	_BCM_I2C_ERROR,4,2              ; @BCM_I2C_ERROR
	.comm	_BCM_BSC_STATUS_TXD,4,2         ; @BCM_BSC_STATUS_TXD
	.no_dead_strip	_bcm_bsc_intr
.subsections_via_symbols
