	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atibl_attach
_atibl_attach:                          ## @atibl_attach
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	callq	_device_get_softc
	movq	%rax, %r14
	movl	$24, -28(%rbp)
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RF_ACTIVE@GOTPCREL(%rip), %rax
	movq	_RF_SHAREABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	-28(%rbp), %rdx
	movl	%ebx, %edi
	callq	_bus_alloc_resource_any
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	%ebx, %edi
	callq	_device_get_sysctl_ctx
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_device_get_sysctl_tree
	movq	%rax, %rdi
	callq	_SYSCTL_CHILDREN
	movq	_OID_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_CTLTYPE_INT@GOTPCREL(%rip), %rcx
	movq	_CTLFLAG_RW@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	orl	(%rcx), %r8d
	movq	_atibl_sysctl@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	leaq	L_.str.3(%rip), %r10
	leaq	L_.str.2(%rip), %r11
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%r14, %r9
	pushq	%r10
	pushq	%r11
	pushq	%rbx
	pushq	$0
	callq	_SYSCTL_ADD_PROC
	addq	$32, %rsp
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYS_RES_MEMORY,4,2             ## @SYS_RES_MEMORY
	.comm	_RF_ACTIVE,4,2                  ## @RF_ACTIVE
	.comm	_RF_SHAREABLE,4,2               ## @RF_SHAREABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not alloc mem resource!\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_OID_AUTO,4,2                   ## @OID_AUTO
L_.str.1:                               ## @.str.1
	.asciz	"level"

	.comm	_CTLTYPE_INT,4,2                ## @CTLTYPE_INT
	.comm	_CTLFLAG_RW,4,2                 ## @CTLFLAG_RW
	.comm	_atibl_sysctl,4,2               ## @atibl_sysctl
L_.str.2:                               ## @.str.2
	.asciz	"I"

L_.str.3:                               ## @.str.3
	.asciz	"Backlight level (0-100)"

	.no_dead_strip	_atibl_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atibl_attach
_atibl_attach:                          ; @atibl_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
	bl	_device_get_softc
	mov	x19, x0
	mov	w8, #24
	str	w8, [sp, #28]
Lloh0:
	adrp	x8, _SYS_RES_MEMORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SYS_RES_MEMORY@GOTPAGEOFF]
Lloh2:
	adrp	x9, _RF_ACTIVE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RF_ACTIVE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _RF_SHAREABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RF_SHAREABLE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x2, sp, #28
	mov	x0, x20
	bl	_bus_alloc_resource_any
	str	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_device_get_sysctl_ctx
	mov	x21, x0
	mov	x0, x20
	bl	_device_get_sysctl_tree
	bl	_SYSCTL_CHILDREN
	mov	x1, x0
Lloh9:
	adrp	x8, _OID_AUTO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OID_AUTO@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _CTLTYPE_INT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CTLTYPE_INT@GOTPAGEOFF]
Lloh14:
	adrp	x9, _CTLFLAG_RW@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CTLFLAG_RW@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh18:
	adrp	x8, _atibl_sysctl@GOTPAGE
Lloh19:
	ldr	x8, [x8, _atibl_sysctl@GOTPAGEOFF]
Lloh20:
	ldr	w7, [x8]
Lloh21:
	adrp	x8, l_.str.3@PAGE
Lloh22:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh23:
	adrp	x9, l_.str.2@PAGE
Lloh24:
	add	x9, x9, l_.str.2@PAGEOFF
	stp	x9, x8, [sp]
Lloh25:
	adrp	x3, l_.str.1@PAGE
Lloh26:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x5, x19
	mov	w6, #0
	bl	_SYSCTL_ADD_PROC
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_device_printf
Lloh29:
	adrp	x8, _ENXIO@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_SYS_RES_MEMORY,4,2             ; @SYS_RES_MEMORY
	.comm	_RF_ACTIVE,4,2                  ; @RF_ACTIVE
	.comm	_RF_SHAREABLE,4,2               ; @RF_SHAREABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not alloc mem resource!\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_OID_AUTO,4,2                   ; @OID_AUTO
l_.str.1:                               ; @.str.1
	.asciz	"level"

	.comm	_CTLTYPE_INT,4,2                ; @CTLTYPE_INT
	.comm	_CTLFLAG_RW,4,2                 ; @CTLFLAG_RW
	.comm	_atibl_sysctl,4,2               ; @atibl_sysctl
l_.str.2:                               ; @.str.2
	.asciz	"I"

l_.str.3:                               ; @.str.3
	.asciz	"Backlight level (0-100)"

	.no_dead_strip	_atibl_attach
.subsections_via_symbols
