	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function power_supply_show_usb_type
_power_supply_show_usb_type:            ## @power_supply_show_usb_type
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	jle	LBB0_4
## %bb.1:
	movq	%r8, %r13
	movq	%rsi, %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%r15,4), %eax
	movslq	%ebx, %rbx
	leaq	(%rbx,%r13), %rdi
	cmpl	%eax, (%rcx)
	movq	_power_supply_usb_type_text@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rdx
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str(%rip), %rax
	cmoveq	%rax, %rsi
	movl	$1, %eax
	cmovel	%eax, %r12d
	callq	_sprintf
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, %ebx
	incq	%r15
	cmpq	%r15, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_2
## %bb.3:
	testl	%r12d, %r12d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_4
## %bb.5:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.7:
	movslq	%ebx, %rax
	movb	$10, -1(%rax,%r13)
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_6:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%s] "

	.comm	_power_supply_usb_type_text,8,3 ## @power_supply_usb_type_text
L_.str.1:                               ## @.str.1
	.asciz	"%s "

L_.str.2:                               ## @.str.2
	.asciz	"driver reporting unsupported connected type\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function power_supply_show_usb_type
_power_supply_show_usb_type:            ; @power_supply_show_usb_type
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x0
	cmp	w2, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x20, x4
	mov	x22, x3
	mov	x23, x1
	mov	w24, #0
	mov	w19, #0
	mov	w25, w2
Lloh0:
	adrp	x26, _power_supply_usb_type_text@GOTPAGE
Lloh1:
	ldr	x26, [x26, _power_supply_usb_type_text@GOTPAGEOFF]
Lloh2:
	adrp	x27, l_.str.1@PAGE
Lloh3:
	add	x27, x27, l_.str.1@PAGEOFF
Lloh4:
	adrp	x28, l_.str@PAGE
Lloh5:
	add	x28, x28, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23], #4
	ldr	w9, [x22]
	add	x0, x20, w19, sxtw
	ldr	x10, [x26]
	ldr	x2, [x10, x8, lsl #3]
	cmp	w9, w8
	csel	x1, x28, x27, eq
	csinc	w24, w24, wzr, ne
	bl	_sprintf
	add	w19, w19, w0
	subs	x25, x25, #1
	b.ne	LBB0_2
; %bb.3:
	cbz	w24, LBB0_6
; %bb.4:
	cbz	w19, LBB0_7
; %bb.5:
	add	x8, x20, w19, sxtw
	mov	w9, #10
	sturb	w9, [x8, #-1]
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_warn
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%s] "

	.comm	_power_supply_usb_type_text,8,3 ; @power_supply_usb_type_text
l_.str.1:                               ; @.str.1
	.asciz	"%s "

l_.str.2:                               ; @.str.2
	.asciz	"driver reporting unsupported connected type\n"

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