	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smbus_do_alert
_smbus_do_alert:                        ## @smbus_do_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_i2c_verify_client
	movq	%rax, %rbx
	xorl	%eax, %eax
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.1:
	movq	(%rbx), %rcx
	cmpq	(%r15), %rcx
	jne	LBB0_9
## %bb.2:
	movq	_I2C_CLIENT_TEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rbx)
	jne	LBB0_9
## %bb.3:
	movq	%r14, %rdi
	callq	_device_lock
	movq	%rbx, %r12
	addq	$16, %r12
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.4:
	callq	_to_i2c_driver
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	8(%r15), %edx
	movl	12(%r15), %esi
	movq	%rbx, %rdi
	callq	*%rax
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_warn
LBB0_8:
	movq	%r14, %rdi
	callq	_device_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_CLIENT_TEN,4,2             ## @I2C_CLIENT_TEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no driver alert()!\n"

L_.str.1:                               ## @.str.1
	.asciz	"alert with no driver\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_smbus_do_alert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smbus_do_alert
_smbus_do_alert:                        ; @smbus_do_alert
	.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	x20, x1
	mov	x19, x0
	bl	_i2c_verify_client
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x21, #8]
Lloh0:
	adrp	x9, _I2C_CLIENT_TEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I2C_CLIENT_TEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	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
	ret
LBB0_5:
	mov	x0, x19
	bl	_device_lock
	mov	x22, x21
	ldr	x0, [x22, #16]!
	cbz	x0, LBB0_8
; %bb.6:
	bl	_to_i2c_driver
	ldr	x8, [x0]
	cbz	x8, LBB0_9
; %bb.7:
	ldp	w2, w1, [x20, #8]
	mov	x0, x21
	blr	x8
	b	LBB0_10
LBB0_8:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
	b	LBB0_10
LBB0_9:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_warn
LBB0_10:
	mov	x0, x19
	bl	_device_unlock
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_CLIENT_TEN,4,2             ; @I2C_CLIENT_TEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no driver alert()!\n"

l_.str.1:                               ; @.str.1
	.asciz	"alert with no driver\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_smbus_do_alert
.subsections_via_symbols
