	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PWMGETSTATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	_PWMSETSTATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movl	$-1, -84(%rbp)                  ## 4-byte Folded Spill
	leaq	L_.str(%rip), %r13
	leaq	LJTI0_0(%rip), %r12
	movl	$-1, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movl	$0, -88(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_1
LBB0_26:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_27:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_getopt
                                        ## kill: def $eax killed $eax def $rax
	leal	-63(%rax), %ecx
	cmpl	$49, %ecx
	ja	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r12,%rcx,4), %rax
	addq	%r12, %rax
	jmpq	*%rax
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PWM_SHOW_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_1
LBB0_21:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PWM_SHOW_CONFIG@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
LBB0_23:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PWM_DUTY@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_optarg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-104(%rbp), %rsi
	movl	$10, %edx
	callq	_strtol
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	-104(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	LBB0_1
## %bb.24:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$37, %al
	jne	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$101, -96(%rbp)                 ## 4-byte Folded Reload
	jb	LBB0_1
	jmp	LBB0_26
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PWM_SHOW_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PWM_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%r14d, %eax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PWM_DISABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	jmp	LBB0_1
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_PWM_SHOW_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PWM_DISABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%r14d, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PWM_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	jmp	LBB0_1
LBB0_28:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_device_name
	movl	$1, -88(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_1
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PWM_SHOW_CONFIG@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PWM_PERIOD@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_optarg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	jmp	LBB0_1
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	jne	LBB0_1
## %bb.3:
	testl	%r14d, %r14d
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_usage
LBB0_5:
	movq	_device_name@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, %r15d
	cmpl	$-1, %eax
	jne	LBB0_30
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	(%rbx), %r13
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edi
	movq	%r13, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_7
## %bb.29:
	xorl	%eax, %eax
	callq	_usage
LBB0_30:
	xorl	%eax, %eax
	callq	_caph_limit_stdio
	testq	%rax, %rax
	js	LBB0_31
## %bb.32:
	xorl	%eax, %eax
	callq	_caph_cache_catpages
	movq	_CAP_IOCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-108(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_cap_rights_init
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_caph_rights_limit
	testq	%rax, %rax
	js	LBB0_33
## %bb.34:
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_nitems
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_caph_ioctls_limit
	testq	%rax, %rax
	js	LBB0_35
## %bb.36:
	xorl	%eax, %eax
	callq	_caph_enter
	testq	%rax, %rax
	js	LBB0_37
## %bb.38:
	movq	_PWMGETSTATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-80(%rbp), %rdx
	movl	%r15d, %edi
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_39
## %bb.40:
	movq	_PWM_SHOW_CONFIG@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_42
## %bb.41:
	movl	-80(%rbp), %esi
	movl	-76(%rbp), %edx
	movl	-72(%rbp), %ecx
	leaq	L_.str.8(%rip), %rdi
	callq	_printf
	jmp	LBB0_56
LBB0_31:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_55
LBB0_33:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_55
LBB0_35:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_55
LBB0_37:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_55
LBB0_39:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_55
LBB0_42:
	movq	_PWM_ENABLE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_44
## %bb.43:
	movl	$1, -72(%rbp)
LBB0_44:
	movq	_PWM_DISABLE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_46
## %bb.45:
	movl	$0, -72(%rbp)
LBB0_46:
	movq	_PWM_PERIOD@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_48
## %bb.47:
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -80(%rbp)
LBB0_48:
	movq	_PWM_DUTY@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_53
## %bb.49:
	movq	-104(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_50
## %bb.51:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	imull	-80(%rbp), %eax
	cltq
	imulq	$1374389535, %rax, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$37, %rcx
	addl	%eax, %ecx
	jmp	LBB0_52
LBB0_50:
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
LBB0_52:
	movl	%ecx, -76(%rbp)
LBB0_53:
	movq	_PWMSETSTATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-80(%rbp), %rdx
	movl	%r15d, %edi
	callq	_ioctl
	xorl	%ebx, %ebx
	cmpl	$-1, %eax
	jne	LBB0_57
## %bb.54:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
LBB0_55:
	xorl	%eax, %eax
	callq	_fprintf
LBB0_56:
	movl	$1, %ebx
LBB0_57:
	movl	%r15d, %edi
	callq	_close
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_59
## %bb.58:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_59:
	callq	___stack_chk_fail
LBB0_7:
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_27
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_15
	.long	L0_0_set_12
	.long	L0_0_set_9
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_21
	.long	L0_0_set_1
	.long	L0_0_set_28
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_18
	.end_data_region
                                        ## -- End function
	.comm	_PWMGETSTATE,8,3                ## @PWMGETSTATE
	.comm	_PWMSETSTATE,8,3                ## @PWMSETSTATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"f:EDCp:d:"

	.comm	_PWM_DISABLE,4,2                ## @PWM_DISABLE
	.comm	_PWM_SHOW_CONFIG,4,2            ## @PWM_SHOW_CONFIG
	.comm	_PWM_ENABLE,4,2                 ## @PWM_ENABLE
	.comm	_PWM_PERIOD,4,2                 ## @PWM_PERIOD
	.comm	_optarg,4,2                     ## @optarg
	.comm	_PWM_DUTY,4,2                   ## @PWM_DUTY
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Invalid duty percentage\n"

	.comm	_device_name,8,3                ## @device_name
	.comm	_O_RDWR,4,2                     ## @O_RDWR
L_.str.2:                               ## @.str.2
	.asciz	"pwm: cannot open %s: %s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	"can't limit stdio rights"

	.comm	_CAP_IOCTL,4,2                  ## @CAP_IOCTL
L_.str.4:                               ## @.str.4
	.asciz	"cap_right_limit() failed\n"

L_.str.5:                               ## @.str.5
	.asciz	"caph_ioctls_limit() failed\n"

L_.str.6:                               ## @.str.6
	.asciz	"failed to enter capability mode\n"

L_.str.7:                               ## @.str.7
	.asciz	"Cannot get current state of the pwm controller\n"

L_.str.8:                               ## @.str.8
	.asciz	"period: %u\nduty: %u\nenabled:%d\n"

L_.str.9:                               ## @.str.9
	.asciz	"Cannot configure the pwm controller\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, x1
	mov	x22, x0
	mov	w27, #0
	mov	w26, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
Lloh3:
	adrp	x8, _PWMGETSTATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PWMGETSTATE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _PWMSETSTATE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PWMSETSTATE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	stp	x8, x9, [sp, #56]
Lloh9:
	adrp	x23, l_.str@PAGE
Lloh10:
	add	x23, x23, l_.str@PAGEOFF
Lloh11:
	adrp	x25, lJTI0_0@PAGE
Lloh12:
	add	x25, x25, lJTI0_0@PAGEOFF
Lloh13:
	adrp	x28, _PWM_SHOW_CONFIG@GOTPAGE
Lloh14:
	ldr	x28, [x28, _PWM_SHOW_CONFIG@GOTPAGEOFF]
Lloh15:
	adrp	x24, _optarg@GOTPAGE
Lloh16:
	ldr	x24, [x24, _optarg@GOTPAGEOFF]
	mov	w20, #-1
	mov	w19, #-1
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_getopt
	sub	w8, w0, #63
	cmp	w8, #49
	b.hi	LBB0_25
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x9, LBB0_1
	ldrb	w10, [x25, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	w27, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w27, [x28]
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x28]
	tst	w8, w27
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh17:
	adrp	x8, _PWM_DUTY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PWM_DUTY@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w27, w8, w27
	ldr	w0, [x24]
	add	x1, sp, #24
	mov	w2, #10
	bl	_strtol
	mov	x19, x0
	ldr	x8, [sp, #24]
	ldrb	w8, [x8]
	cbz	w8, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #37
	b.ne	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w19, #101
	b.lo	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh20:
	adrp	x8, _stderr@GOTPAGE
Lloh21:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	b	LBB0_2
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh25:
	adrp	x8, _PWM_ENABLE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PWM_ENABLE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [x28]
	orr	w8, w9, w8
	tst	w8, w27
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh28:
	adrp	x8, _PWM_DISABLE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PWM_DISABLE@GOTPAGEOFF]
	b	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh30:
	adrp	x8, _PWM_DISABLE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PWM_DISABLE@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	w9, [x28]
	orr	w8, w9, w8
	tst	w8, w27
	b.eq	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
LBB0_19:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh33:
	adrp	x8, _PWM_ENABLE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PWM_ENABLE@GOTPAGEOFF]
LBB0_20:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x8]
	orr	w27, w8, w27
	b	LBB0_2
LBB0_21:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x24]
	bl	_set_device_name
	mov	w26, #1
	b	LBB0_2
LBB0_22:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x28]
	tst	w8, w27
	b.eq	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
LBB0_24:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh35:
	adrp	x8, _PWM_PERIOD@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PWM_PERIOD@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	orr	w27, w8, w27
	ldr	w0, [x24]
	mov	x1, #0
	mov	w2, #10
	bl	_strtol
	mov	x20, x0
	b	LBB0_2
LBB0_25:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.26:
	cbnz	w27, LBB0_28
; %bb.27:
	bl	_usage
LBB0_28:
Lloh38:
	adrp	x23, _device_name@GOTPAGE
Lloh39:
	ldr	x23, [x23, _device_name@GOTPAGEOFF]
	ldr	x0, [x23]
Lloh40:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	bl	_open
	mov	x21, x0
	cmn	w0, #1
	b.eq	LBB0_36
; %bb.29:
	bl	_caph_limit_stdio
	tbnz	x0, #63, LBB0_38
LBB0_30:
	bl	_caph_cache_catpages
Lloh43:
	adrp	x8, _CAP_IOCTL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _CAP_IOCTL@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	add	x0, sp, #36
	bl	_cap_rights_init
	add	x1, sp, #36
	mov	x0, x21
	bl	_caph_rights_limit
	tbnz	x0, #63, LBB0_39
; %bb.31:
	add	x0, sp, #56
	bl	_nitems
	mov	x2, x0
	add	x1, sp, #56
	mov	x0, x21
	bl	_caph_ioctls_limit
	tbnz	x0, #63, LBB0_40
; %bb.32:
	bl	_caph_enter
	tbnz	x0, #63, LBB0_41
; %bb.33:
Lloh46:
	adrp	x8, _PWMGETSTATE@GOTPAGE
Lloh47:
	ldr	x8, [x8, _PWMGETSTATE@GOTPAGEOFF]
Lloh48:
	ldr	x1, [x8]
	add	x2, sp, #40
	mov	x0, x21
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_42
; %bb.34:
	ldr	w8, [x28]
	cmp	w27, w8
	b.ne	LBB0_43
; %bb.35:
	ldp	w1, w2, [sp, #40]
	ldr	w3, [sp, #48]
Lloh49:
	adrp	x0, l_.str.8@PAGE
Lloh50:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
	b	LBB0_57
LBB0_36:
Lloh51:
	adrp	x8, _stderr@GOTPAGE
Lloh52:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh53:
	ldr	w22, [x8]
	ldr	x23, [x23]
Lloh54:
	adrp	x8, _errno@GOTPAGE
Lloh55:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	bl	_strerror
	stp	x23, x0, [sp]
Lloh57:
	adrp	x1, l_.str.2@PAGE
Lloh58:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_fprintf
	cbnz	w26, LBB0_61
; %bb.37:
	bl	_usage
	bl	_caph_limit_stdio
	tbz	x0, #63, LBB0_30
LBB0_38:
Lloh59:
	adrp	x8, _stderr@GOTPAGE
Lloh60:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
Lloh62:
	adrp	x1, l_.str.3@PAGE
Lloh63:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_56
LBB0_39:
Lloh64:
	adrp	x8, _stderr@GOTPAGE
Lloh65:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh66:
	ldr	w0, [x8]
Lloh67:
	adrp	x1, l_.str.4@PAGE
Lloh68:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_56
LBB0_40:
Lloh69:
	adrp	x8, _stderr@GOTPAGE
Lloh70:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh71:
	ldr	w0, [x8]
Lloh72:
	adrp	x1, l_.str.5@PAGE
Lloh73:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_56
LBB0_41:
Lloh74:
	adrp	x8, _stderr@GOTPAGE
Lloh75:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh76:
	ldr	w0, [x8]
Lloh77:
	adrp	x1, l_.str.6@PAGE
Lloh78:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_56
LBB0_42:
Lloh79:
	adrp	x8, _stderr@GOTPAGE
Lloh80:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh81:
	ldr	w0, [x8]
Lloh82:
	adrp	x1, l_.str.7@PAGE
Lloh83:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_56
LBB0_43:
Lloh84:
	adrp	x8, _PWM_ENABLE@GOTPAGE
Lloh85:
	ldr	x8, [x8, _PWM_ENABLE@GOTPAGEOFF]
Lloh86:
	ldr	w8, [x8]
	tst	w8, w27
	b.eq	LBB0_45
; %bb.44:
	mov	w8, #1
	str	w8, [sp, #48]
LBB0_45:
Lloh87:
	adrp	x8, _PWM_DISABLE@GOTPAGE
Lloh88:
	ldr	x8, [x8, _PWM_DISABLE@GOTPAGEOFF]
Lloh89:
	ldr	w8, [x8]
	tst	w8, w27
	b.eq	LBB0_47
; %bb.46:
	str	wzr, [sp, #48]
LBB0_47:
Lloh90:
	adrp	x8, _PWM_PERIOD@GOTPAGE
Lloh91:
	ldr	x8, [x8, _PWM_PERIOD@GOTPAGEOFF]
Lloh92:
	ldr	w8, [x8]
	tst	w8, w27
	b.eq	LBB0_49
; %bb.48:
	str	w20, [sp, #40]
LBB0_49:
Lloh93:
	adrp	x8, _PWM_DUTY@GOTPAGE
Lloh94:
	ldr	x8, [x8, _PWM_DUTY@GOTPAGEOFF]
Lloh95:
	ldr	w8, [x8]
	tst	w8, w27
	b.eq	LBB0_53
; %bb.50:
	ldr	x8, [sp, #24]
	ldrb	w8, [x8]
	cbz	w8, LBB0_52
; %bb.51:
	ldr	w8, [sp, #40]
	mul	w8, w8, w19
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w19, w8, w9
LBB0_52:
	str	w19, [sp, #44]
LBB0_53:
Lloh96:
	adrp	x8, _PWMSETSTATE@GOTPAGE
Lloh97:
	ldr	x8, [x8, _PWMSETSTATE@GOTPAGEOFF]
Lloh98:
	ldr	x1, [x8]
	add	x2, sp, #40
	mov	x0, x21
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_55
; %bb.54:
	mov	w19, #0
	b	LBB0_58
LBB0_55:
Lloh99:
	adrp	x8, _stderr@GOTPAGE
Lloh100:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh101:
	ldr	w0, [x8]
Lloh102:
	adrp	x1, l_.str.9@PAGE
Lloh103:
	add	x1, x1, l_.str.9@PAGEOFF
LBB0_56:
	bl	_fprintf
LBB0_57:
	mov	w19, #1
LBB0_58:
	mov	x0, x21
	bl	_close
	ldr	x8, [sp, #72]
Lloh104:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh105:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh106:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_60
; %bb.59:
	mov	x0, x19
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_60:
	bl	___stack_chk_fail
LBB0_61:
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_17-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_7-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_21-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_22-LBB0_1)>>2
                                        ; -- End function
	.comm	_PWMGETSTATE,8,3                ; @PWMGETSTATE
	.comm	_PWMSETSTATE,8,3                ; @PWMSETSTATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"f:EDCp:d:"

	.comm	_PWM_DISABLE,4,2                ; @PWM_DISABLE
	.comm	_PWM_SHOW_CONFIG,4,2            ; @PWM_SHOW_CONFIG
	.comm	_PWM_ENABLE,4,2                 ; @PWM_ENABLE
	.comm	_PWM_PERIOD,4,2                 ; @PWM_PERIOD
	.comm	_optarg,4,2                     ; @optarg
	.comm	_PWM_DUTY,4,2                   ; @PWM_DUTY
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Invalid duty percentage\n"

	.comm	_device_name,8,3                ; @device_name
	.comm	_O_RDWR,4,2                     ; @O_RDWR
l_.str.2:                               ; @.str.2
	.asciz	"pwm: cannot open %s: %s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	"can't limit stdio rights"

	.comm	_CAP_IOCTL,4,2                  ; @CAP_IOCTL
l_.str.4:                               ; @.str.4
	.asciz	"cap_right_limit() failed\n"

l_.str.5:                               ; @.str.5
	.asciz	"caph_ioctls_limit() failed\n"

l_.str.6:                               ; @.str.6
	.asciz	"failed to enter capability mode\n"

l_.str.7:                               ; @.str.7
	.asciz	"Cannot get current state of the pwm controller\n"

l_.str.8:                               ; @.str.8
	.asciz	"period: %u\nduty: %u\nenabled:%d\n"

l_.str.9:                               ; @.str.9
	.asciz	"Cannot configure the pwm controller\n"

.subsections_via_symbols
