	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmstb_i2c_isr
_brcmstb_i2c_isr:                       ## @brcmstb_i2c_isr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	_ctl_reg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bsc_readl
	movl	%eax, %r14d
	movq	_iic_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bsc_readl
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_BSC_CTL_REG_INT_EN_MASK@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_INT_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_brcmstb_i2c_enable_disable_irq
	leaq	4(%rbx), %rdi
	callq	_complete
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ctl_reg,4,2                    ## @ctl_reg
	.comm	_iic_enable,4,2                 ## @iic_enable
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"isr CTL_REG %x IIC_EN %x\n"

	.comm	_BSC_CTL_REG_INT_EN_MASK,4,2    ## @BSC_CTL_REG_INT_EN_MASK
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_INT_DISABLE,4,2                ## @INT_DISABLE
L_.str.1:                               ## @.str.1
	.asciz	"isr handled"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_brcmstb_i2c_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmstb_i2c_isr
_brcmstb_i2c_isr:                       ; @brcmstb_i2c_isr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _ctl_reg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ctl_reg@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bsc_readl
	mov	x20, x0
Lloh3:
	adrp	x8, _iic_enable@GOTPAGE
Lloh4:
	ldr	x8, [x8, _iic_enable@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bsc_readl
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19]
	stp	x20, x0, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_dev_dbg
Lloh8:
	adrp	x8, _BSC_CTL_REG_INT_EN_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BSC_CTL_REG_INT_EN_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _INT_DISABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INT_DISABLE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_brcmstb_i2c_enable_disable_irq
	add	x0, x19, #4
	bl	_complete
	ldr	w0, [x19]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
Lloh16:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh18:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ctl_reg,4,2                    ; @ctl_reg
	.comm	_iic_enable,4,2                 ; @iic_enable
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"isr CTL_REG %x IIC_EN %x\n"

	.comm	_BSC_CTL_REG_INT_EN_MASK,4,2    ; @BSC_CTL_REG_INT_EN_MASK
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_INT_DISABLE,4,2                ; @INT_DISABLE
l_.str.1:                               ; @.str.1
	.asciz	"isr handled"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_brcmstb_i2c_isr
.subsections_via_symbols
