	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ide_gd_media_changed
_ide_gd_media_changed:                  ## @ide_gd_media_changed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ide_disk_obj@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ide_drv_g
	movq	(%rax), %rdi
	movl	(%rdi), %edx
	movq	_IDE_DFLAG_ATTACH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IDE_DFLAG_MEDIA_CHANGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%edx, %eax
	setne	%r8b
	testl	%edx, %esi
	sete	%cl
	cmovel	%eax, %esi
	andb	%r8b, %cl
	movzbl	%cl, %eax
	notl	%esi
	andl	%edx, %esi
	movl	%esi, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ide_disk_obj,4,2               ## @ide_disk_obj
	.comm	_IDE_DFLAG_ATTACH,4,2           ## @IDE_DFLAG_ATTACH
	.comm	_IDE_DFLAG_MEDIA_CHANGED,4,2    ## @IDE_DFLAG_MEDIA_CHANGED
	.no_dead_strip	_ide_gd_media_changed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ide_gd_media_changed
_ide_gd_media_changed:                  ; @ide_gd_media_changed
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _ide_disk_obj@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ide_disk_obj@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ide_drv_g
	ldr	x8, [x0]
	ldr	w9, [x8]
Lloh3:
	adrp	x10, _IDE_DFLAG_ATTACH@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IDE_DFLAG_ATTACH@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _IDE_DFLAG_MEDIA_CHANGED@GOTPAGE
Lloh7:
	ldr	x11, [x11, _IDE_DFLAG_MEDIA_CHANGED@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	tst	w11, w9
	cset	w12, ne
	tst	w10, w9
	cset	w13, eq
	csel	w10, w11, w10, eq
	and	w0, w13, w12
	bic	w9, w9, w10
	str	w9, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ide_disk_obj,4,2               ; @ide_disk_obj
	.comm	_IDE_DFLAG_ATTACH,4,2           ; @IDE_DFLAG_ATTACH
	.comm	_IDE_DFLAG_MEDIA_CHANGED,4,2    ; @IDE_DFLAG_MEDIA_CHANGED
	.no_dead_strip	_ide_gd_media_changed
.subsections_via_symbols
