	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atom_parse                     ## -- Begin function atom_parse
	.p2align	4, 0x90
_atom_parse:                            ## @atom_parse
	.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	%r12
	pushq	%rbx
	subq	$528, %rsp                      ## imm = 0x210
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r15
	movq	%rbx, 24(%rax)
	movq	%r14, 16(%rax)
	xorl	%edi, %edi
	callq	_CU16
	movq	_ATOM_BIOS_MAGIC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.2:
	movq	_ATOM_ATI_MAGIC_PTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CSTR
	movq	%rax, %r14
	movq	_ATOM_ATI_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_strlen
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rdi
LBB0_6:
	xorl	%eax, %eax
	callq	_pr_info
	movq	%r15, %rdi
	callq	_kfree
LBB0_7:
	xorl	%r15d, %r15d
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_27
## %bb.9:
	movq	%r15, %rax
	addq	$528, %rsp                      ## imm = 0x210
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_ATOM_ROM_TABLE_PTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_CU16
	movl	%eax, %r14d
	movq	_ATOM_ROM_MAGIC_PTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%r14d, %edi
	callq	_CSTR
	movq	%rax, %r12
	movq	_ATOM_ROM_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_strlen
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_6
LBB0_12:
	movslq	%r14d, %r14
	movq	_ATOM_ROM_CMD_PTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r14, %rdi
	callq	_CU16
	movl	%eax, (%r15)
	movq	_ATOM_ROM_DATA_PTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r14, %rdi
	callq	_CU16
	movl	%eax, 4(%r15)
	movslq	%eax, %rdi
	movq	_ATOM_DATA_IIO_PTR@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_CU16
                                        ## kill: def $eax killed $eax def $rax
	leal	4(%rax), %esi
	movq	%r15, %rdi
	callq	_atom_index_iio
	cmpl	$0, 8(%r15)
	je	LBB0_18
## %bb.13:
	movq	_ATOM_ROM_MSG_PTR@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	%r14, %rdi
	callq	_CU16
	movl	%eax, %edi
	callq	_CSTR
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	incq	%rax
	movzbl	-1(%rax), %ecx
	cmpb	$10, %cl
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpb	$13, %cl
	je	LBB0_14
## %bb.16:
	movb	%cl, -560(%rbp)
	addb	$-123, %cl
	cmpb	$-77, %cl
	jae	LBB0_19
## %bb.17:
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_18:
	movq	%r15, %rdi
	callq	_atom_destroy
	jmp	LBB0_7
LBB0_19:
	xorl	%ecx, %ecx
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$510, %rcx                      ## imm = 0x1FE
	je	LBB0_26
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movzbl	(%rax,%rcx), %edx
	movb	%dl, -559(%rbp,%rcx)
	addb	$-123, %dl
	cmpb	$-77, %dl
	jb	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	leaq	2(%rcx), %rdx
	movzbl	1(%rax,%rcx), %ebx
	movb	%bl, -558(%rbp,%rcx)
	addb	$-123, %bl
	movq	%rdx, %rcx
	cmpb	$-77, %bl
	jae	LBB0_20
	jmp	LBB0_24
LBB0_23:
	incq	%rcx
	movq	%rcx, %rdx
LBB0_24:
	movl	%edx, %eax
LBB0_25:
	movb	$0, -560(%rbp,%rax)
LBB0_26:
	leaq	L_.str.3(%rip), %rdi
	leaq	-560(%rbp), %rsi
	xorl	%eax, %eax
	callq	_pr_info
	jmp	LBB0_8
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ATOM_BIOS_MAGIC,4,2            ## @ATOM_BIOS_MAGIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid BIOS magic\n"

	.comm	_ATOM_ATI_MAGIC_PTR,4,2         ## @ATOM_ATI_MAGIC_PTR
	.comm	_ATOM_ATI_MAGIC,4,2             ## @ATOM_ATI_MAGIC
L_.str.1:                               ## @.str.1
	.asciz	"Invalid ATI magic\n"

	.comm	_ATOM_ROM_TABLE_PTR,8,3         ## @ATOM_ROM_TABLE_PTR
	.comm	_ATOM_ROM_MAGIC_PTR,4,2         ## @ATOM_ROM_MAGIC_PTR
	.comm	_ATOM_ROM_MAGIC,4,2             ## @ATOM_ROM_MAGIC
L_.str.2:                               ## @.str.2
	.asciz	"Invalid ATOM magic\n"

	.comm	_ATOM_ROM_CMD_PTR,8,3           ## @ATOM_ROM_CMD_PTR
	.comm	_ATOM_ROM_DATA_PTR,8,3          ## @ATOM_ROM_DATA_PTR
	.comm	_ATOM_DATA_IIO_PTR,8,3          ## @ATOM_DATA_IIO_PTR
	.comm	_ATOM_ROM_MSG_PTR,8,3           ## @ATOM_ROM_MSG_PTR
L_.str.3:                               ## @.str.3
	.asciz	"ATOM BIOS: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atom_parse                     ; -- Begin function atom_parse
	.p2align	2
_atom_parse:                            ; @atom_parse
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #528
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	stp	x20, x21, [x19, #16]
	mov	x0, #0
	bl	_CU16
Lloh6:
	adrp	x8, _ATOM_BIOS_MAGIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATOM_BIOS_MAGIC@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _ATOM_ATI_MAGIC_PTR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATOM_ATI_MAGIC_PTR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_CSTR
	mov	x20, x0
Lloh12:
	adrp	x8, _ATOM_ATI_MAGIC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ATOM_ATI_MAGIC@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_strncmp
	cbz	x0, LBB0_9
; %bb.3:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
LBB0_5:
	bl	_pr_info
	mov	x0, x19
	bl	_kfree
LBB0_6:
	mov	x19, #0
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.8:
	mov	x0, x19
	add	sp, sp, #528
	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	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh22:
	adrp	x8, _ATOM_ROM_TABLE_PTR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ATOM_ROM_TABLE_PTR@GOTPAGEOFF]
Lloh24:
	ldr	x0, [x8]
	bl	_CU16
	mov	x20, x0
Lloh25:
	adrp	x8, _ATOM_ROM_MAGIC_PTR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ATOM_ROM_MAGIC_PTR@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	add	w0, w8, w0
	bl	_CSTR
	mov	x21, x0
Lloh28:
	adrp	x8, _ATOM_ROM_MAGIC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ATOM_ROM_MAGIC@GOTPAGEOFF]
Lloh30:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_strncmp
	cbz	x0, LBB0_11
; %bb.10:
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_11:
	sxtw	x20, w20
Lloh33:
	adrp	x8, _ATOM_ROM_CMD_PTR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ATOM_ROM_CMD_PTR@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	add	x0, x8, x20
	bl	_CU16
	str	w0, [x19]
Lloh36:
	adrp	x8, _ATOM_ROM_DATA_PTR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ATOM_ROM_DATA_PTR@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	add	x0, x8, x20
	bl	_CU16
	str	w0, [x19, #4]
Lloh39:
	adrp	x8, _ATOM_DATA_IIO_PTR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ATOM_DATA_IIO_PTR@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	add	x0, x8, w0, sxtw
	bl	_CU16
	add	w1, w0, #4
	mov	x0, x19
	bl	_atom_index_iio
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_17
; %bb.12:
Lloh42:
	adrp	x8, _ATOM_ROM_MSG_PTR@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ATOM_ROM_MSG_PTR@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	add	x0, x8, x20
	bl	_CU16
	bl	_CSTR
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x0]
	cmp	w8, #10
	ccmp	w8, #13, #4, ne
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x0, x0, #1
	b	LBB0_13
LBB0_15:
	strb	w8, [sp, #8]
	sub	w8, w8, #123
	cmn	w8, #77
	b.hs	LBB0_18
; %bb.16:
	mov	x8, #0
	b	LBB0_22
LBB0_17:
	mov	x0, x19
	bl	_atom_destroy
	b	LBB0_6
LBB0_18:
	mov	w8, #1
	add	x9, sp, #8
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	cmp	x8, #511
	b.eq	LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldrb	w10, [x0, x8]
	strb	w10, [x9, x8]
	sub	w10, w10, #123
	add	x8, x8, #1
	cmn	w10, #77
	b.hs	LBB0_19
; %bb.21:
	sub	x8, x8, #1
LBB0_22:
	add	x9, sp, #8
	strb	wzr, [x9, x8]
LBB0_23:
	add	x8, sp, #8
	str	x8, [sp]
Lloh45:
	adrp	x0, l_.str.3@PAGE
Lloh46:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_info
	b	LBB0_7
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ATOM_BIOS_MAGIC,4,2            ; @ATOM_BIOS_MAGIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid BIOS magic\n"

	.comm	_ATOM_ATI_MAGIC_PTR,4,2         ; @ATOM_ATI_MAGIC_PTR
	.comm	_ATOM_ATI_MAGIC,4,2             ; @ATOM_ATI_MAGIC
l_.str.1:                               ; @.str.1
	.asciz	"Invalid ATI magic\n"

	.comm	_ATOM_ROM_TABLE_PTR,8,3         ; @ATOM_ROM_TABLE_PTR
	.comm	_ATOM_ROM_MAGIC_PTR,4,2         ; @ATOM_ROM_MAGIC_PTR
	.comm	_ATOM_ROM_MAGIC,4,2             ; @ATOM_ROM_MAGIC
l_.str.2:                               ; @.str.2
	.asciz	"Invalid ATOM magic\n"

	.comm	_ATOM_ROM_CMD_PTR,8,3           ; @ATOM_ROM_CMD_PTR
	.comm	_ATOM_ROM_DATA_PTR,8,3          ; @ATOM_ROM_DATA_PTR
	.comm	_ATOM_DATA_IIO_PTR,8,3          ; @ATOM_DATA_IIO_PTR
	.comm	_ATOM_ROM_MSG_PTR,8,3           ; @ATOM_ROM_MSG_PTR
l_.str.3:                               ; @.str.3
	.asciz	"ATOM BIOS: %s\n"

.subsections_via_symbols
