	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gab_get_property
_gab_get_property:                      ## @gab_get_property
	.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
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	$0, -28(%rbp)
	callq	_to_generic_bat
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	leal	-128(%r15), %edx
	cmpl	$10, %edx
	ja	LBB0_6
## %bb.2:
	movq	(%rax), %rcx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_3:
	leaq	-28(%rbp), %rdx
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_read_channel
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_18
## %bb.4:
	movl	-28(%rbp), %eax
	jmp	LBB0_12
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_7:
	movl	16(%rcx), %eax
	jmp	LBB0_16
LBB0_8:
	movl	8(%rcx), %eax
	jmp	LBB0_16
LBB0_9:
	movq	%rax, %rdi
	callq	_gab_get_status
	jmp	LBB0_16
LBB0_10:
	movl	24(%rcx), %eax
	jmp	LBB0_16
LBB0_11:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	*(%rcx)
LBB0_12:
	movl	%eax, (%r14)
	jmp	LBB0_18
LBB0_13:
	movl	20(%rcx), %eax
	jmp	LBB0_16
LBB0_14:
	movl	$0, (%r14)
	jmp	LBB0_17
LBB0_15:
	movl	12(%rcx), %eax
LBB0_16:
	movl	%eax, (%r14)
LBB0_17:
	xorl	%ebx, %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_15
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_3
	.long	L0_0_set_10
	.long	L0_0_set_3
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no battery infos ?!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_gab_get_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gab_get_property
_gab_get_property:                      ; @gab_get_property
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	wzr, [sp, #12]
	bl	_to_generic_bat
	cbz	x0, LBB0_5
; %bb.1:
	sub	w9, w20, #128
	cmp	w9, #10
	b.hi	LBB0_6
; %bb.2:
	ldr	x8, [x0]
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
	add	x2, sp, #12
	mov	x1, x20
	bl	_read_channel
	tbnz	w0, #31, LBB0_17
; %bb.4:
	ldr	w8, [sp, #12]
	b	LBB0_16
LBB0_5:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
LBB0_6:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_7:
	mov	w0, #0
	ldr	w8, [x8, #16]
	b	LBB0_16
LBB0_8:
	mov	w0, #0
	ldr	w8, [x8, #8]
	b	LBB0_16
LBB0_9:
	bl	_gab_get_status
	b	LBB0_12
LBB0_10:
	mov	w0, #0
	ldr	w8, [x8, #24]
	b	LBB0_16
LBB0_11:
	ldr	x8, [x8]
	mov	w0, #0
	blr	x8
LBB0_12:
	mov	x8, x0
	mov	w0, #0
	b	LBB0_16
LBB0_13:
	mov	w0, #0
	ldr	w8, [x8, #20]
	b	LBB0_16
LBB0_14:
	mov	w0, #0
	str	wzr, [x19]
	b	LBB0_17
LBB0_15:
	mov	w0, #0
	ldr	w8, [x8, #12]
LBB0_16:
	str	w8, [x19]
LBB0_17:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no battery infos ?!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_gab_get_property
.subsections_via_symbols
