	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ata_acpi_uevent
_ata_acpi_uevent:                       ## @ata_acpi_uevent
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	movl	%edx, %ecx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -64(%rbp)
	movq	$0, -56(%rbp)
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	(%rsi), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.3:
	testq	%rbx, %rbx
	je	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rdx
	leaq	-48(%rbp), %rdi
	movl	$20, %esi
	callq	_snprintf
	movq	_KOBJ_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_kobject_uevent_env
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
	jmp	LBB0_5
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BAY_EVENT=%d"

	.comm	_KOBJ_CHANGE,4,2                ## @KOBJ_CHANGE
	.no_dead_strip	_ata_acpi_uevent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ata_acpi_uevent
_ata_acpi_uevent:                       ; @ata_acpi_uevent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x3, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	add	x8, sp, #20
	stp	x8, xzr, [sp]
	cbz	x1, LBB0_6
; %bb.1:
	ldr	x19, [x1]
	cbz	x19, LBB0_4
; %bb.2:
	cbz	x19, LBB0_4
LBB0_3:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #20
	mov	w1, #20
	bl	_snprintf
Lloh5:
	adrp	x8, _KOBJ_CHANGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KOBJ_CHANGE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	bl	_kobject_uevent_env
LBB0_4:
	ldur	x8, [x29, #-24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	ldr	x19, [x0]
	cbnz	x19, LBB0_3
	b	LBB0_4
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BAY_EVENT=%d"

	.comm	_KOBJ_CHANGE,4,2                ; @KOBJ_CHANGE
	.no_dead_strip	_ata_acpi_uevent
.subsections_via_symbols
