	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwmcheck
_pwmcheck:                              ## @pwmcheck
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_pwm@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.3:
	movl	(%rdi), %eax
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	movq	_PWM_NCHAN@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jge	LBB0_6
## %bb.5:
	movq	(%rcx), %rcx
	cmpq	%rdi, (%rcx,%rax,8)
	je	LBB0_8
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pwm,8,3                        ## @pwm
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PWM_NCHAN,4,2                  ## @PWM_NCHAN
	.no_dead_strip	_pwmcheck
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwmcheck
_pwmcheck:                              ; @pwmcheck
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _pwm@GOTPAGE
Lloh1:
	ldr	x9, [x9, _pwm@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cbz	x9, LBB0_6
; %bb.1:
	mov	x8, x0
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x8]
	tbnz	w0, #31, LBB0_5
; %bb.3:
Lloh3:
	adrp	x10, _PWM_NCHAN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PWM_NCHAN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w0, w10
	b.ge	LBB0_5
; %bb.4:
	ldr	x9, [x9]
	ldr	x9, [x9, x0, lsl #3]
	cmp	x9, x8
	b.eq	LBB0_8
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_pwm,8,3                        ; @pwm
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PWM_NCHAN,4,2                  ; @PWM_NCHAN
	.no_dead_strip	_pwmcheck
.subsections_via_symbols
