	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpiod_add_hogs                 ## -- Begin function gpiod_add_hogs
	.p2align	4, 0x90
_gpiod_add_hogs:                        ## @gpiod_add_hogs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_gpio_machine_hogs_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.1:
	movq	_gpio_machine_hogs@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 16(%rbx)
	leaq	16(%rbx), %rbx
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	8(%rbx), %rdi
	movq	%r14, %rsi
	callq	_list_add_tail
	movq	(%rbx), %rdi
	callq	_find_chip_by_name
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_gpiochip_machine_hog
	jmp	LBB0_4
LBB0_5:
	movq	_gpio_machine_hogs_mutex@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_gpio_machine_hogs_mutex,4,2    ## @gpio_machine_hogs_mutex
	.comm	_gpio_machine_hogs,4,2          ## @gpio_machine_hogs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpiod_add_hogs                 ; -- Begin function gpiod_add_hogs
	.p2align	2
_gpiod_add_hogs:                        ; @gpiod_add_hogs
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, _gpio_machine_hogs_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _gpio_machine_hogs_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.1:
Lloh2:
	adrp	x20, _gpio_machine_hogs@GOTPAGE
Lloh3:
	ldr	x20, [x20, _gpio_machine_hogs@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]!
	cbz	x8, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x19, #8
	mov	x1, x20
	bl	_list_add_tail
	ldr	x0, [x19]
	bl	_find_chip_by_name
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x19
	bl	_gpiochip_machine_hog
	b	LBB0_2
LBB0_5:
Lloh4:
	adrp	x0, _gpio_machine_hogs_mutex@GOTPAGE
Lloh5:
	ldr	x0, [x0, _gpio_machine_hogs_mutex@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_gpio_machine_hogs_mutex,4,2    ; @gpio_machine_hogs_mutex
	.comm	_gpio_machine_hogs,4,2          ; @gpio_machine_hogs
.subsections_via_symbols
