	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps3cdrom_probe
_ps3cdrom_probe:                        ## @ps3cdrom_probe
	.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
	movl	%edi, %ebx
	callq	_ps3bus_get_bustype
	movq	_PS3_BUSTYPE_STORAGE@GOTPCREL(%rip), %rcx
	movq	_ENXIO@GOTPCREL(%rip), %r14
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movl	%ebx, %edi
	callq	_ps3bus_get_devtype
	movq	_PS3_DEVTYPE_CDROM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	callq	_device_set_desc
	movq	_BUS_PROBE_SPECIFIC@GOTPCREL(%rip), %r14
LBB0_3:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PS3_BUSTYPE_STORAGE,8,3        ## @PS3_BUSTYPE_STORAGE
	.comm	_PS3_DEVTYPE_CDROM,8,3          ## @PS3_DEVTYPE_CDROM
	.comm	_ENXIO,4,2                      ## @ENXIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Playstation 3 CDROM"

	.comm	_BUS_PROBE_SPECIFIC,4,2         ## @BUS_PROBE_SPECIFIC
	.no_dead_strip	_ps3cdrom_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps3cdrom_probe
_ps3cdrom_probe:                        ; @ps3cdrom_probe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_ps3bus_get_bustype
Lloh0:
	adrp	x8, _PS3_BUSTYPE_STORAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PS3_BUSTYPE_STORAGE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_ps3bus_get_devtype
Lloh3:
	adrp	x8, _PS3_DEVTYPE_CDROM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PS3_DEVTYPE_CDROM@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_device_set_desc
Lloh8:
	adrp	x8, _BUS_PROBE_SPECIFIC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BUS_PROBE_SPECIFIC@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh10:
	adrp	x8, _ENXIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PS3_BUSTYPE_STORAGE,8,3        ; @PS3_BUSTYPE_STORAGE
	.comm	_PS3_DEVTYPE_CDROM,8,3          ; @PS3_DEVTYPE_CDROM
	.comm	_ENXIO,4,2                      ; @ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Playstation 3 CDROM"

	.comm	_BUS_PROBE_SPECIFIC,4,2         ; @BUS_PROBE_SPECIFIC
	.no_dead_strip	_ps3cdrom_probe
.subsections_via_symbols
