	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smbus_alert
_smbus_alert:                           ## @smbus_alert
	.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
	movq	(%rsi), %rbx
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	leaq	8(%rbx), %r14
	xorl	%r15d, %r15d
	movq	_I2C_PROTOCOL_SMBUS_ALERT@GOTPCREL(%rip), %r13
	leaq	-56(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ecx
	andl	$1, %ecx
	movl	%ecx, -56(%rbp)
	shrl	%eax
	movl	%eax, -52(%rbp)
	movl	(%r13), %edx
	movl	%edx, -48(%rbp)
	movzwl	%r15w, %edx
	cmpl	%edx, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movzwl	%ax, %edx
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movq	(%rbx), %rdi
	movq	_smbus_do_alert@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_device_for_each_child
	movzwl	-52(%rbp), %r15d
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte
	testl	%eax, %eax
	jns	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movzwl	%ax, %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_5:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_PROTOCOL_SMBUS_ALERT,4,2   ## @I2C_PROTOCOL_SMBUS_ALERT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Duplicate SMBALERT# from dev 0x%02x, skipping\n"

L_.str.1:                               ## @.str.1
	.asciz	"SMBALERT# from dev 0x%02x, flag %d\n"

	.comm	_smbus_do_alert,4,2             ## @smbus_do_alert
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_smbus_alert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smbus_alert
_smbus_alert:                           ; @smbus_alert
	.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
	ldr	x19, [x1]
	mov	x0, x19
	bl	_i2c_smbus_read_byte
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	w24, #0
	add	x20, x19, #8
Lloh0:
	adrp	x22, _I2C_PROTOCOL_SMBUS_ALERT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _I2C_PROTOCOL_SMBUS_ALERT@GOTPAGEOFF]
Lloh2:
	adrp	x23, _smbus_do_alert@GOTPAGE
Lloh3:
	ldr	x23, [x23, _smbus_do_alert@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str.1@PAGE
Lloh5:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	and	w3, w0, #0x1
	lsr	w8, w0, #1
	stp	w3, w8, [sp]
	ldr	w9, [x22]
	str	w9, [sp, #8]
	cmp	w8, w24, uxth
	ubfx	w2, w0, #1, #16
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_dev_dbg
	ldr	x0, [x19]
	ldr	w2, [x23]
	mov	x1, sp
	bl	_device_for_each_child
	ldrh	w24, [sp, #4]
	mov	x0, x19
	bl	_i2c_smbus_read_byte
	tbz	w0, #31, LBB0_2
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_5:
Lloh8:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_PROTOCOL_SMBUS_ALERT,4,2   ; @I2C_PROTOCOL_SMBUS_ALERT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Duplicate SMBALERT# from dev 0x%02x, skipping\n"

l_.str.1:                               ; @.str.1
	.asciz	"SMBALERT# from dev 0x%02x, flag %d\n"

	.comm	_smbus_do_alert,4,2             ; @smbus_do_alert
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_smbus_alert
.subsections_via_symbols
