	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdrom_get_current_config_core  ## -- Begin function cdrom_get_current_config_core
	.p2align	4, 0x90
_cdrom_get_current_config_core:         ## @cdrom_get_current_config_core
	.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	$72, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movw	$20, -24(%rbp)
	movq	$16777798, -32(%rbp)            ## imm = 0x1000246
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	$0, -48(%rbp)
	movq	_DIRECTION_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$0, (%rsp)
	leaq	-64(%rbp), %rdx
	leaq	-32(%rbp), %r8
	movl	$20, %ecx
	movl	$10, %r9d
	callq	_cdrom_send_command
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	testl	%ebx, %ebx
	jne	LBB0_9
## %bb.1:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-64(%rbp), %esi
	leaq	L_.str.3(%rip), %rbx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-63(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-62(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-61(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-60(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-59(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-58(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-57(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$10, %edi
	callq	_putchar
	movzbl	-58(%rbp), %esi
	movb	-57(%rbp), %al
	testl	%esi, %esi
	jne	LBB0_4
## %bb.2:
	cmpb	$8, %al
	jne	LBB0_4
## %bb.3:
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_5
LBB0_4:
	movzbl	%al, %edx
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_5:
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-56(%rbp), %esi
	leaq	L_.str.3(%rip), %rbx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-55(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-54(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-53(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-52(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-51(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-50(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-49(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-48(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-47(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-46(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-45(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$10, %edi
	callq	_putchar
	movl	-52(%rbp), %eax
	shll	$24, %eax
	movzbl	-51(%rbp), %ecx
	shlq	$16, %rcx
	cltq
	orq	%rcx, %rax
	movzbl	-50(%rbp), %ecx
	shlq	$8, %rcx
	orq	%rax, %rcx
	movzbl	-49(%rbp), %esi
	orq	%rcx, %rsi
	cmpl	$8, %esi
	ja	LBB0_6
## %bb.7:
	leaq	l_reltable.cdrom_get_current_config_core(%rip), %rax
	movslq	(%rax,%rsi,4), %rdx
	addq	%rax, %rdx
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str(%rip), %rdx
LBB0_8:
	leaq	L_.str.13(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$72, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
l___const.cdrom_get_current_config_core.cdb: ## @__const.cdrom_get_current_config_core.cdb
	.asciz	"F\002\000\001\000\000\000\000\024"

	.comm	_DIRECTION_IN,4,2               ## @DIRECTION_IN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown"

L_.str.1:                               ## @.str.1
	.asciz	"[CDROM] get current config core status code %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"[CDROM] Feature Header: "

L_.str.3:                               ## @.str.3
	.asciz	"%02X "

L_.str.6:                               ## @.str.6
	.asciz	"[CDROM] Current Profile: %02X%02X\n"

L_.str.7:                               ## @.str.7
	.asciz	"[CDROM] Core Feature Descriptor: "

L_.str.8:                               ## @.str.8
	.asciz	"Unspecified"

L_.str.9:                               ## @.str.9
	.asciz	"SCSI Family"

L_.str.10:                              ## @.str.10
	.asciz	"ATAPI"

L_.str.11:                              ## @.str.11
	.asciz	"Serial ATAPI"

L_.str.12:                              ## @.str.12
	.asciz	"USB"

L_.str.13:                              ## @.str.13
	.asciz	"[CDROM] Physical Interface Standard: %u (%s)\n"

L_str:                                  ## @str
	.asciz	"[CDROM] Current Profile: CD-ROM"

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.cdrom_get_current_config_core
l_reltable.cdrom_get_current_config_core:
	.long	L_.str.8-l_reltable.cdrom_get_current_config_core
	.long	L_.str.9-l_reltable.cdrom_get_current_config_core
	.long	L_.str.10-l_reltable.cdrom_get_current_config_core
	.long	L_.str-l_reltable.cdrom_get_current_config_core
	.long	L_.str-l_reltable.cdrom_get_current_config_core
	.long	L_.str-l_reltable.cdrom_get_current_config_core
	.long	L_.str-l_reltable.cdrom_get_current_config_core
	.long	L_.str.11-l_reltable.cdrom_get_current_config_core
	.long	L_.str.12-l_reltable.cdrom_get_current_config_core

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdrom_get_current_config_core  ; -- Begin function cdrom_get_current_config_core
	.p2align	2
_cdrom_get_current_config_core:         ; @cdrom_get_current_config_core
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	mov	w8, #20
	strh	w8, [sp, #48]
	mov	w8, #582
	movk	w8, #256, lsl #16
	str	x8, [sp, #40]
	stp	xzr, xzr, [sp, #16]
	str	wzr, [sp, #32]
Lloh3:
	adrp	x8, _DIRECTION_IN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DIRECTION_IN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #16
	add	x4, sp, #40
	mov	w3, #20
	mov	w5, #10
	mov	w6, #0
	bl	_cdrom_send_command
	mov	x19, x0
	str	x19, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	cbnz	w19, LBB0_9
; %bb.1:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	ldrb	w8, [sp, #16]
	str	x8, [sp]
Lloh10:
	adrp	x19, l_.str.3@PAGE
Lloh11:
	add	x19, x19, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_printf
	ldrb	w8, [sp, #17]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldrb	w8, [sp, #18]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldrb	w8, [sp, #19]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldrb	w8, [sp, #20]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldrb	w8, [sp, #21]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldrb	w8, [sp, #22]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldrb	w8, [sp, #23]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	mov	w0, #10
	bl	_putchar
	ldrb	w8, [sp, #22]
	ldrb	w9, [sp, #23]
	cbnz	w8, LBB0_4
; %bb.2:
	cmp	w9, #8
	b.ne	LBB0_4
; %bb.3:
Lloh12:
	adrp	x0, l_str@PAGE
Lloh13:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_5
LBB0_4:
	stp	x8, x9, [sp]
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
LBB0_5:
Lloh16:
	adrp	x0, l_.str.7@PAGE
Lloh17:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
	ldrb	w8, [sp, #24]
	str	x8, [sp]
Lloh18:
	adrp	x19, l_.str.3@PAGE
Lloh19:
	add	x19, x19, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_printf
	ldrb	w8, [sp, #25]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldrb	w8, [sp, #26]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldrb	w8, [sp, #27]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldrb	w8, [sp, #28]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldrb	w8, [sp, #29]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldrb	w8, [sp, #30]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldrb	w8, [sp, #31]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldrb	w8, [sp, #32]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldrb	w8, [sp, #33]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldrb	w8, [sp, #34]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldrb	w8, [sp, #35]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	mov	w0, #10
	bl	_putchar
	ldr	w8, [sp, #28]
	rev	w8, w8
	cmp	w8, #8
	b.hi	LBB0_7
; %bb.6:
Lloh20:
	adrp	x9, l_switch.table.cdrom_get_current_config_core@PAGE
Lloh21:
	add	x9, x9, l_switch.table.cdrom_get_current_config_core@PAGEOFF
	ldr	x9, [x9, w8, sxtw #3]
	b	LBB0_8
LBB0_7:
Lloh22:
	adrp	x9, l_.str@PAGE
Lloh23:
	add	x9, x9, l_.str@PAGEOFF
LBB0_8:
	stp	x8, x9, [sp]
Lloh24:
	adrp	x0, l_.str.13@PAGE
Lloh25:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_printf
LBB0_9:
	ldur	x8, [x29, #-24]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l___const.cdrom_get_current_config_core.cdb: ; @__const.cdrom_get_current_config_core.cdb
	.asciz	"F\002\000\001\000\000\000\000\024"

	.comm	_DIRECTION_IN,4,2               ; @DIRECTION_IN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown"

l_.str.1:                               ; @.str.1
	.asciz	"[CDROM] get current config core status code %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"[CDROM] Feature Header: "

l_.str.3:                               ; @.str.3
	.asciz	"%02X "

l_.str.6:                               ; @.str.6
	.asciz	"[CDROM] Current Profile: %02X%02X\n"

l_.str.7:                               ; @.str.7
	.asciz	"[CDROM] Core Feature Descriptor: "

l_.str.8:                               ; @.str.8
	.asciz	"Unspecified"

l_.str.9:                               ; @.str.9
	.asciz	"SCSI Family"

l_.str.10:                              ; @.str.10
	.asciz	"ATAPI"

l_.str.11:                              ; @.str.11
	.asciz	"Serial ATAPI"

l_.str.12:                              ; @.str.12
	.asciz	"USB"

l_.str.13:                              ; @.str.13
	.asciz	"[CDROM] Physical Interface Standard: %u (%s)\n"

l_str:                                  ; @str
	.asciz	"[CDROM] Current Profile: CD-ROM"

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.cdrom_get_current_config_core
l_switch.table.cdrom_get_current_config_core:
	.quad	l_.str.8
	.quad	l_.str.9
	.quad	l_.str.10
	.quad	l_.str
	.quad	l_.str
	.quad	l_.str
	.quad	l_.str
	.quad	l_.str.11
	.quad	l_.str.12

.subsections_via_symbols
