	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmbus_get_boolean
_pmbus_get_boolean:                     ## @pmbus_get_boolean
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movl	%edx, %ecx
	shrl	$16, %ecx
	movq	(%rdi), %rsi
	movl	(%rsi,%rcx,4), %ebx
	testl	%ebx, %ebx
	js	LBB0_11
## %bb.1:
	movq	(%rax), %r14
	movq	8(%rax), %rcx
	movzwl	%dx, %r13d
	movq	%rcx, %rdx
	orq	%r14, %rdx
	je	LBB0_7
## %bb.2:
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.3:
	testq	%r14, %r14
	je	LBB0_8
## %bb.4:
	movq	(%rcx), %rax
	testq	%rax, %rax
	js	LBB0_10
## %bb.5:
	movq	(%r14), %rax
	testq	%rax, %rax
	js	LBB0_10
## %bb.6:
	movq	%rdi, %r15
	movq	%rcx, %rsi
	callq	_pmbus_reg2data
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pmbus_reg2data
	testl	%ebx, %r13d
	setne	%cl
	cmpq	%rax, %r12
	setge	%al
	andb	%cl, %al
	movzbl	%al, %ebx
	jmp	LBB0_11
LBB0_7:
	xorl	%eax, %eax
	testl	%ebx, %r13d
	setne	%al
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%rax, %rdx
	movq	%r14, %r8
	callq	_WARN
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_10:
	movl	%eax, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %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	"Bad boolean descriptor %p: s1=%p, s2=%p\n"

	.no_dead_strip	_pmbus_get_boolean
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmbus_get_boolean
_pmbus_get_boolean:                     ; @pmbus_get_boolean
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	lsr	w9, w2, #16
	ldr	x10, [x0]
	ldr	w0, [x10, w9, uxtw #2]
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x8, x1
	ldp	x19, x3, [x1]
	and	w9, w2, w0
	and	w22, w9, #0xffff
	orr	x9, x3, x19
	cbz	x9, LBB0_4
; %bb.2:
	cmp	x3, #0
	ccmp	x19, #0, #4, ne
	b.ne	LBB0_6
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x8
	mov	x4, x19
	bl	_WARN
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	cmp	w22, #0
	cset	w0, ne
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x0, [x3]
	tbnz	x0, #63, LBB0_5
; %bb.7:
	ldr	x0, [x19]
	tbnz	x0, #63, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	x1, x3
	bl	_pmbus_reg2data
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_pmbus_reg2data
	cmp	w22, #0
	ccmp	x21, x0, #8, ne
	cset	w0, ge
	b	LBB0_5
LBB0_9:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad boolean descriptor %p: s1=%p, s2=%p\n"

	.no_dead_strip	_pmbus_get_boolean
.subsections_via_symbols
