	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdrom_get_current_config_profiles ## -- Begin function cdrom_get_current_config_profiles
	.p2align	4, 0x90
_cdrom_get_current_config_profiles:     ## @cdrom_get_current_config_profiles
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	movl	$65576, %eax                    ## imm = 0x10028
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movabsq	$-72057594037927354, %rax       ## imm = 0xFF00000000000246
	movq	%rax, -64(%rbp)
	movw	$250, -56(%rbp)
	leaq	-65600(%rbp), %r14
	movl	$65530, %esi                    ## imm = 0xFFFA
	movq	%r14, %rdi
	callq	___bzero
	movq	_DIRECTION_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$0, (%rsp)
	leaq	-64(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	$65530, %ecx                    ## imm = 0xFFFA
	movl	$10, %r9d
	callq	_cdrom_send_command
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	testl	%ebx, %ebx
	jne	LBB0_7
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-65600(%rbp), %esi
	leaq	L_.str.2(%rip), %rbx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-65599(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-65598(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-65597(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-65596(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-65595(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-65594(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-65593(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$10, %edi
	callq	_putchar
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-65592(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-65591(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-65590(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-65589(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$10, %edi
	callq	_putchar
	movzbl	-65589(%rbp), %esi
	shrl	$2, %esi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	cmpb	$4, -65589(%rbp)
	jae	LBB0_2
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$65576, %rsp                    ## imm = 0x10028
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str.6(%rip), %r15
	leaq	L_str(%rip), %r14
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$10, %edi
	callq	_putchar
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	-65589(%rbp), %eax
	shrq	$2, %rax
	cmpq	%rax, %r12
	jae	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rbx
	incq	%r12
	movzwl	-65588(%rbp,%rbx,4), %eax
	rolw	$8, %ax
	movzwl	%ax, %r13d
	movl	%r13d, %edi
	callq	_get_profile
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_printf
	testb	$1, -65586(%rbp,%rbx,4)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_puts
	jmp	LBB0_6
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
l___const.cdrom_get_current_config_profiles.cdb: ## @__const.cdrom_get_current_config_profiles.cdb
	.asciz	"F\002\000\000\000\000\000\377\372"

	.comm	_DIRECTION_IN,4,2               ## @DIRECTION_IN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[CDROM] get current config profiles status code %d\n"

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

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

L_.str.4:                               ## @.str.4
	.asciz	"[CDROM] Profile List Descriptor: "

L_.str.5:                               ## @.str.5
	.asciz	"[CDROM] Number of profiles: %u\n"

L_.str.6:                               ## @.str.6
	.asciz	"[CDROM] Profile Number: %04X (%s) "

L_str:                                  ## @str
	.asciz	"(current)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdrom_get_current_config_profiles ; -- Begin function cdrom_get_current_config_profiles
	.p2align	2
_cdrom_get_current_config_profiles:     ; @cdrom_get_current_config_profiles
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	w9, #48
	movk	w9, #1, lsl #16
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #16, lsl #12            ; =65536
	sub	sp, sp, #48
	mov	x19, x0
	sub	x8, x29, #72
Lloh2:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	stur	x9, [x29, #-56]
Lloh5:
	adrp	x9, l___const.cdrom_get_current_config_profiles.cdb@PAGE
Lloh6:
	add	x9, x9, l___const.cdrom_get_current_config_profiles.cdb@PAGEOFF
Lloh7:
	ldr	x9, [x9]
	str	x9, [x8]
	mov	w9, #250
	strh	w9, [x8, #8]
	add	x0, sp, #30
	mov	w1, #65530
	bl	_bzero
Lloh8:
	adrp	x8, _DIRECTION_IN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DIRECTION_IN@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #30
	sub	x4, x29, #72
	mov	x0, x19
	mov	w3, #65530
	mov	w5, #10
	mov	w6, #0
	bl	_cdrom_send_command
	mov	x19, x0
	str	x19, [sp]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	cbnz	w19, LBB0_2
; %bb.1:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldrb	w8, [sp, #30]
	str	x8, [sp]
Lloh15:
	adrp	x19, l_.str.2@PAGE
Lloh16:
	add	x19, x19, l_.str.2@PAGEOFF
	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
	ldrb	w8, [sp, #36]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldrb	w8, [sp, #37]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	mov	w0, #10
	bl	_putchar
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	ldrb	w8, [sp, #38]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldrb	w8, [sp, #39]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldrb	w8, [sp, #40]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldrb	w8, [sp, #41]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	mov	w0, #10
	bl	_putchar
	ldrb	w8, [sp, #41]
	lsr	w8, w8, #2
	str	x8, [sp]
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	ldrb	w8, [sp, #41]
	cmp	w8, #4
	b.hs	LBB0_4
LBB0_2:
	ldur	x8, [x29, #-56]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.3:
	add	sp, sp, #16, lsl #12            ; =65536
	add	sp, sp, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x22, #0
	add	x8, sp, #30
	add	x23, x8, #14
Lloh24:
	adrp	x19, l_.str.6@PAGE
Lloh25:
	add	x19, x19, l_.str.6@PAGEOFF
Lloh26:
	adrp	x20, l_str@PAGE
Lloh27:
	add	x20, x20, l_str@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #10
	bl	_putchar
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
	ldrb	w8, [sp, #41]
	add	x23, x23, #4
	cmp	x22, x8, lsr #2
	b.hs	LBB0_2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldurh	w8, [x23, #-2]
	rev16	w21, w8
	mov	x0, x21
	bl	_get_profile
	stp	x21, x0, [sp]
	mov	x0, x19
	bl	_printf
	ldrb	w8, [x23]
	tbz	w8, #0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_puts
	b	LBB0_6
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAddLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l___const.cdrom_get_current_config_profiles.cdb: ; @__const.cdrom_get_current_config_profiles.cdb
	.asciz	"F\002\000\000\000\000\000\377\372"

	.comm	_DIRECTION_IN,4,2               ; @DIRECTION_IN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[CDROM] get current config profiles status code %d\n"

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

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

l_.str.4:                               ; @.str.4
	.asciz	"[CDROM] Profile List Descriptor: "

l_.str.5:                               ; @.str.5
	.asciz	"[CDROM] Number of profiles: %u\n"

l_.str.6:                               ; @.str.6
	.asciz	"[CDROM] Profile Number: %04X (%s) "

l_str:                                  ; @str
	.asciz	"(current)"

.subsections_via_symbols
